Skip to content

Commit

Permalink
Merge pull request #68 from w3c/submissions/TestTWF/dgrogan-IndexedDB
Browse files Browse the repository at this point in the history
IndexedDB: dgrogan's tests from Test the Web Forward Paris (2012)
  • Loading branch information
zqzhang committed Dec 11, 2013
2 parents 7bcae40 + 921b2cf commit b0c49f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 105 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,23 @@

<script>

var db, open_rq = createdb(async_test(), undefined, 2)
var db, open_rq = createdb(async_test(), undefined, 2);

open_rq.onupgradeneeded = function(e) {
db = e.target.result;
assert_equals(db.version, 2);
transaction = e.target.transaction;
transaction.oncomplete = fail(this, "unexpected transaction.complete")
transaction.oncomplete = fail(this, "unexpected transaction.complete");
transaction.onabort = function(e) {
assert_equals(e.target.db.version, 0);
assert_true(!!request.transaction, "request.transaction should be non-null");
}
db.onabort = function() {}

transaction.abort();
}

open_rq.onerror = function(e) {
assert_equals(!!e.target.result, true, "event.target.result should be non-null");
assert_true(!!e.target.result, "event.target.result should be non-null");
assert_equals(db, e.target.result);
assert_equals(open_rq, e.target);
assert_equals(e.target.error.name, "AbortError");
Expand Down
File renamed without changes.
101 changes: 0 additions & 101 deletions IndexedDB/submissions/TestTWF_Paris/dgrogan/support.js

This file was deleted.

0 comments on commit b0c49f3

Please sign in to comment.