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

Side by Side Diff: LayoutTests/storage/indexeddb/resources/intversion-abort-in-initial-upgradeneeded.js

Issue 307653004: IndexedDB: Result of failed request should be |undefined| (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 if (this.importScripts) { 1 if (this.importScripts) {
2 importScripts('../../../resources/js-test.js'); 2 importScripts('../../../resources/js-test.js');
3 importScripts('shared.js'); 3 importScripts('shared.js');
4 } 4 }
5 5
6 description("Test that an abort in the initial upgradeneeded sets version back t o 0"); 6 description("Test that an abort in the initial upgradeneeded sets version back t o 0");
7 7
8 function test() 8 function test()
9 { 9 {
10 removeVendorPrefixes(); 10 removeVendorPrefixes();
(...skipping 26 matching lines...) Expand all
37 function onAbort(evt) 37 function onAbort(evt)
38 { 38 {
39 preamble(evt); 39 preamble(evt);
40 shouldBe("event.target.db.version", "0"); 40 shouldBe("event.target.db.version", "0");
41 shouldBeNonNull("request.transaction"); 41 shouldBeNonNull("request.transaction");
42 } 42 }
43 43
44 function onError(evt) 44 function onError(evt)
45 { 45 {
46 preamble(evt); 46 preamble(evt);
47 shouldBe("db", "event.target.result");
48 shouldBe("request", "event.target"); 47 shouldBe("request", "event.target");
48 shouldBeUndefined("event.target.result");
49 shouldBeNonNull("event.target.error");
49 shouldBeEqualToString("event.target.error.name", "AbortError"); 50 shouldBeEqualToString("event.target.error.name", "AbortError");
50 shouldBe("event.target.result.version", "0");
51 shouldBeNull("request.transaction"); 51 shouldBeNull("request.transaction");
52 finishJSTest(); 52 finishJSTest();
53 } 53 }
54 54
55 test(); 55 test();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698