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

Side by Side Diff: LayoutTests/storage/indexeddb/mozilla/resources/open-database-null-name.js

Issue 1317593005: Indexed DB: Remove vendor prefix removal from tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
1 // original test: 1 // original test:
2 // http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/test_open_empty_d b.html?force=1 2 // http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/test_open_empty_d b.html?force=1
3 // license of original test: 3 // license of original test:
4 // " Any copyright is dedicated to the Public Domain. 4 // " Any copyright is dedicated to the Public Domain.
5 // http://creativecommons.org/publicdomain/zero/1.0/ " 5 // http://creativecommons.org/publicdomain/zero/1.0/ "
6 6
7 if (this.importScripts) { 7 if (this.importScripts) {
8 importScripts('../../../../resources/js-test.js'); 8 importScripts('../../../../resources/js-test.js');
9 importScripts('../../resources/shared.js'); 9 importScripts('../../resources/shared.js');
10 } 10 }
11 11
12 description("Test IndexedDB: should NOT throw when opening a database with a nul l name"); 12 description("Test IndexedDB: should NOT throw when opening a database with a nul l name");
13 13
14 function test() 14 function test()
15 { 15 {
16 removeVendorPrefixes();
17
18 request = evalAndLog("indexedDB.open(null);"); 16 request = evalAndLog("indexedDB.open(null);");
19 request.onsuccess = openSuccess; 17 request.onsuccess = openSuccess;
20 request.onerror = unexpectedErrorCallback; 18 request.onerror = unexpectedErrorCallback;
21 } 19 }
22 20
23 function openSuccess() 21 function openSuccess()
24 { 22 {
25 db = evalAndLog("db = event.target.result"); 23 db = evalAndLog("db = event.target.result");
26 shouldBe("db.name", "'null'"); 24 shouldBe("db.name", "'null'");
27 finishJSTest(); 25 finishJSTest();
28 } 26 }
29 27
30 test(); 28 test();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698