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> |