Skip to content

Commit

Permalink
Merge pull request #69 from w3c/submissions/TestTWF/rhuet-IndexedDB
Browse files Browse the repository at this point in the history
IndexedDB: rhuet's tests from Test the Web Forward Paris (2012)
  • Loading branch information
zqzhang committed Dec 11, 2013
2 parents b0c49f3 + 6f576c5 commit e6d26e4
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 107 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@
checkCursorDirection("store.openCursor(0, 'nextunique')", "nextunique");
checkCursorDirection("store.openCursor(0, 'prev')", "prev");
checkCursorDirection("store.openCursor(0, 'prevunique')", "prevunique");
checkCursorDirection("store.openCursor(0, IDBCursor.NEXT)", "next");
checkCursorDirection("store.openCursor(0, IDBCursor.NEXT_NO_DUPLICATE)", "nextunique");
checkCursorDirection("store.openCursor(0, IDBCursor.PREV)", "prev");
checkCursorDirection("store.openCursor(0, IDBCursor.PREV_NO_DUPLICATE)", "prevunique");

checkCursorDirection("store.openCursor(IDBKeyRange.only(0))", "next");
checkCursorDirection("store.openCursor(IDBKeyRange.only(0), 'next')", "next");
Expand Down Expand Up @@ -81,8 +77,7 @@

function checkCursorDirection(statement, direction) {
request = eval(statement);
request.onsuccess = function() {
console.log(statement);
request.onsuccess = function(event) {
assert_not_equals(event.target.result, null, "Check the result is not null")
assert_equals(event.target.result.direction, direction, "Check the result direction");
};
Expand Down
File renamed without changes.
File renamed without changes.
101 changes: 0 additions & 101 deletions IndexedDB/submissions/TestTWF_Paris/rhuet/support.js

This file was deleted.

0 comments on commit e6d26e4

Please sign in to comment.