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

Side by Side Diff: content/test/data/indexeddb/corrupted_open_db_recovery.html

Issue 401893002: IndexedDB: Stop using webkit-prefixed versions of APIs in tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More webkitIndexedDB foo and update webkitErrorMessage use too Created 6 years, 5 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <!-- 3 <!--
4 Copyright 2014 The Chromium Authors. All rights reserved. 4 Copyright 2014 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be 5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file. 6 found in the LICENSE file.
7 --> 7 -->
8 <head> 8 <head>
9 <title>IDB test that db's corrupted while open are properly handled Part 2 / 2</ title> 9 <title>IDB test that db's corrupted while open are properly handled Part 2 / 2</ title>
10 <script type="text/javascript" src="common.js"></script> 10 <script type="text/javascript" src="common.js"></script>
11 <script> 11 <script>
12 12
13 function test() { 13 function test() {
14 dbname = "corrupted_open_db_detection.html"; 14 dbname = "corrupted_open_db_detection.html";
15 request = webkitIndexedDB.open(dbname); 15 request = indexedDB.open(dbname);
16 request.onupgradeneeded = upgradeNeeded; 16 request.onupgradeneeded = upgradeNeeded;
17 request.onsuccess = onSuccess; 17 request.onsuccess = onSuccess;
18 request.onerror = unexpectedErrorCallback; 18 request.onerror = unexpectedErrorCallback;
19 request.onblocked = unexpectedBlockedCallback; 19 request.onblocked = unexpectedBlockedCallback;
20 } 20 }
21 21
22 var gotUpgradeNeeded = false; 22 var gotUpgradeNeeded = false;
23 function upgradeNeeded(evt) { 23 function upgradeNeeded(evt) {
24 event = evt; 24 event = evt;
25 shouldBe("event.dataLoss", "'total'"); 25 shouldBe("event.dataLoss", "'total'");
(...skipping 11 matching lines...) Expand all
37 shouldBeTrue("gotUpgradeNeeded"); 37 shouldBeTrue("gotUpgradeNeeded");
38 done(); 38 done();
39 } 39 }
40 40
41 </script> 41 </script>
42 </head> 42 </head>
43 <body onLoad="test()"> 43 <body onLoad="test()">
44 <div id="status">Starting...</div> 44 <div id="status">Starting...</div>
45 </body> 45 </body>
46 </html> 46 </html>
OLDNEW
« no previous file with comments | « content/test/data/indexeddb/bug_84933.js ('k') | content/test/data/indexeddb/cursor_prefetch.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698