OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>IDBDatabase.transaction() - attempt to open a transaction with invalid sc
ope</title> | 2 <title>IDBDatabase.transaction() - attempt to open a transaction with invalid sc
ope</title> |
3 <link rel="author" title="Microsoft" href="http://www.microsoft.com"> | 3 <link rel="author" title="Microsoft" href="http://www.microsoft.com"> |
4 <script src="../../../resources/testharness.js"></script> | 4 <script src="../../../resources/testharness.js"></script> |
5 <script src="../../../resources/testharnessreport.js"></script> | 5 <script src="../../../resources/testharnessreport.js"></script> |
6 <script src="support.js"></script> | 6 <script src="support.js"></script> |
7 | 7 |
8 <script> | 8 <script> |
9 | 9 |
10 var db, | 10 var db, |
11 t = async_test(), | 11 t = async_test(), |
12 open_rq = createdb(t); | 12 open_rq = createdb(t); |
13 | 13 |
14 open_rq.onupgradeneeded = function() {}; | 14 open_rq.onupgradeneeded = function() {}; |
15 open_rq.onsuccess = function(e) { | 15 open_rq.onsuccess = function(e) { |
16 db = e.target.result; | 16 db = e.target.result; |
17 | 17 |
18 assert_throws('NotFoundError', function() { db.transaction('non-existing');
}); | 18 assert_throws('NotFoundError', function() { db.transaction('non-existing');
}); |
19 t.done(); | 19 t.done(); |
20 }; | 20 }; |
21 | 21 |
22 </script> | 22 </script> |
23 | 23 |
24 <div id="log"></div> | 24 <div id="log"></div> |
OLD | NEW |