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

Unified Diff: LayoutTests/storage/indexeddb/event-init.html

Issue 386883008: Converted IDBVersionChangeEvent.dataLoss to an enumeration: IDBDataLossAmount (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase required due to the WebCore -> bling namespace rename. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/storage/indexeddb/event-init-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/storage/indexeddb/event-init.html
diff --git a/LayoutTests/storage/indexeddb/event-init.html b/LayoutTests/storage/indexeddb/event-init.html
index 5afd20a6d3d1f8012b33699013e8076bed9dfbf4..36ba20fedb0d92938fe220ba4f7c310964c3d23c 100644
--- a/LayoutTests/storage/indexeddb/event-init.html
+++ b/LayoutTests/storage/indexeddb/event-init.html
@@ -8,6 +8,7 @@ shouldBeTrue("event instanceof IDBVersionChangeEvent");
shouldBeEqualToString("event.type", "default");
shouldBe("event.oldVersion", "0");
shouldBe("event.newVersion", "null");
+shouldBe("event.dataLoss", '"none"');
debug("");
evalAndLog("initEvent = {oldVersion: 123, newVersion: 456}");
@@ -16,6 +17,16 @@ shouldBeTrue("event instanceof IDBVersionChangeEvent");
shouldBeEqualToString("event.type", "foo");
shouldBe("event.oldVersion", "initEvent.oldVersion");
shouldBe("event.newVersion", "initEvent.newVersion");
+shouldBe("event.dataLoss", '"none"');
+
+debug("");
+evalAndLog("initEvent = {oldVersion: 124, newVersion: 457, dataLoss: 'total'}");
+evalAndLog("event = new IDBVersionChangeEvent('foo2', initEvent)");
+shouldBeTrue("event instanceof IDBVersionChangeEvent");
+shouldBeEqualToString("event.type", "foo2");
+shouldBe("event.oldVersion", "initEvent.oldVersion");
+shouldBe("event.newVersion", "initEvent.newVersion");
+shouldBe("event.dataLoss", "initEvent.dataLoss");
debug("");
evalAndLog("initEvent = {oldVersion: 'legacy', newVersion: null}");
@@ -25,5 +36,6 @@ shouldBeEqualToString("event.type", "bar");
// We pull strings out of legacy databases, but don't let them be created
shouldBe("event.oldVersion", "0");
shouldBeNull("event.newVersion");
+shouldBe("event.dataLoss", '"none"');
</script>
« no previous file with comments | « no previous file | LayoutTests/storage/indexeddb/event-init-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698