Skip to content

Commit

Permalink
Review rhuet's Indexed DB tests
Browse files Browse the repository at this point in the history
- Remove support.js
- Remove error checkCursorDirections
- Add back undefined event
  • Loading branch information
Zhiqiang Zhang committed Dec 11, 2013
1 parent e7ca6c7 commit 6f576c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 107 deletions.
7 changes: 1 addition & 6 deletions IndexedDB/cursor-overloads.htm
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
101 changes: 0 additions & 101 deletions IndexedDB/support.js

This file was deleted.

0 comments on commit 6f576c5

Please sign in to comment.