| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>IDBCursor.advance() - invalid</title> | 2 <title>IDBCursor.advance() - invalid</title> |
| 3 <link rel="author" href="mailto:odinho@opera.com" title="Odin Hørthe Omdal"> | 3 <link rel="author" href="mailto:odinho@opera.com" title="Odin Hørthe Omdal"> |
| 4 <link rel=help href="http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#
widl-IDBCursor-advance-void-unsigned-long-count"> | 4 <link rel=help href="http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#
widl-IDBCursor-advance-void-unsigned-long-count"> |
| 5 <link rel=assert title="If the value for count is 0 (zero) or a negative number,
this method must throw a JavaScript TypeError exception."> | 5 <link rel=assert title="If the value for count is 0 (zero) or a negative number,
this method must throw a JavaScript TypeError exception."> |
| 6 <link rel=assert title="TypeError The value passed into the count parameter was
zero or a negative number."> | 6 <link rel=assert title="TypeError The value passed into the count parameter was
zero or a negative number."> |
| 7 <link rel=assert title="InvalidStateError The cursor is currently being iterated
, or has iterated past its end."> | 7 <link rel=assert title="InvalidStateError The cursor is currently being iterated
, or has iterated past its end."> |
| 8 <link rel=assert title="Calling this method more than once before new cursor dat
a has been loaded is not allowed and results in a DOMException of type InvalidSt
ateError being thrown. For example, calling advance() twice from the same onsucc
ess handler results in a DOMException of type InvalidStateError being thrown on
the second call."> | 8 <link rel=assert title="Calling this method more than once before new cursor dat
a has been loaded is not allowed and results in a DOMException of type InvalidSt
ateError being thrown. For example, calling advance() twice from the same onsucc
ess handler results in a DOMException of type InvalidStateError being thrown on
the second call."> |
| 9 <link rel=assert title="Before this method returns, unless an exception was thro
wn, it sets the got value flag on the cursor to false."> | 9 <link rel=assert title="Before this method returns, unless an exception was thro
wn, it sets the got value flag on the cursor to false."> |
| 10 <script src="../../../resources/testharness.js"></script> | 10 <script src="/resources/testharness.js"></script> |
| 11 <script src="../../../resources/testharnessreport.js"></script> | 11 <script src="/resources/testharnessreport.js"></script> |
| 12 <script src="support.js"></script> | 12 <script src="support.js"></script> |
| 13 | 13 |
| 14 <script> | 14 <script> |
| 15 | 15 |
| 16 var db, open; | 16 var db, open; |
| 17 | 17 |
| 18 setup(function() { | 18 setup(function() { |
| 19 open = indexedDB.open('testdb-' + new Date().getTime()); | 19 open = indexedDB.open('testdb-' + new Date().getTime()); |
| 20 open.onupgradeneeded = function(e) { | 20 open.onupgradeneeded = function(e) { |
| 21 db = e.target.result; | 21 db = e.target.result; |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 }); | 179 }); |
| 180 | 180 |
| 181 | 181 |
| 182 // Stop blocking the testing system from hereon | 182 // Stop blocking the testing system from hereon |
| 183 done(); | 183 done(); |
| 184 } | 184 } |
| 185 | 185 |
| 186 </script> | 186 </script> |
| 187 | 187 |
| 188 <div id=log></div> | 188 <div id=log></div> |
| OLD | NEW |