Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Side by Side Diff: LayoutTests/imported/web-platform-tests/IndexedDB/idbfactory_deleteDatabase3.htm

Issue 560893005: First checked-in import of the W3C's test suites. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add new expectations for newly failing w3c tests Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>IDBFactory.deleteDatabase() - success event</title>
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-IDBFactory-deleteDatabase-IDBOpenDBRequest-DOMString-name">
5 <meta name=assert title="If the steps above are successful, the implementation m ust set the result of the request to undefined and fire a success event at the r equest. The event must implement the IDBVersionChangeEvent interface and have ol dVersion set to database version and have the newVersion property set to null.">
6 <script src=../../../resources/testharness.js></script>
7 <script src=../../../resources/testharnessreport.js></script>
8 <script src=support.js></script>
9
10 <script>
11 var db
12 var open_rq = createdb(async_test(document.title, {timeout: 10000}), undefin ed, 9)
13
14 open_rq.onupgradeneeded = function(e) {
15 db = e.target.result
16 db.createObjectStore('os')
17 }
18 open_rq.onsuccess = function(e) {
19 db.close()
20
21 var delete_rq = window.indexedDB.deleteDatabase(db.name)
22 delete_rq.onerror = fail(this, "Unexpected delete_rq.error event")
23 delete_rq.onsuccess = this.step_func( function (e) {
24 assert_equals(e.oldVersion, 9, "oldVersion")
25 assert_equals(e.newVersion, null, "newVersion")
26 assert_equals(e.target.result, undefined, "result")
27 assert_true(e instanceof IDBVersionChangeEvent, "e instanceof IDBVer sionChangeEvent")
28 this.done()
29 })
30 }
31 </script>
32
33 <div id=log></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698