Title: [193411] trunk/LayoutTests
Revision
193411
Author
[email protected]
Date
2015-12-03 22:40:16 -0800 (Thu, 03 Dec 2015)

Log Message

Modern IDB: Fix up tests that refer to non-standard IDBVersionChangeEvent.dataLoss.
https://bugs.webkit.org/show_bug.cgi?id=151850

Reviewed by Andy Estes.

* platform/mac-wk1/TestExpectations:

* storage/indexeddb/data-corruption-expected.txt: Removed.
* storage/indexeddb/data-corruption.html: Removed.
* storage/indexeddb/resources/data-corruption.js: Removed.

* storage/indexeddb/events-expected.txt:
* storage/indexeddb/resources/events.js:

Modified Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (193410 => 193411)


--- trunk/LayoutTests/ChangeLog	2015-12-04 05:55:35 UTC (rev 193410)
+++ trunk/LayoutTests/ChangeLog	2015-12-04 06:40:16 UTC (rev 193411)
@@ -1,5 +1,21 @@
 2015-12-03  Brady Eidson  <[email protected]>
 
+        Modern IDB: Fix up tests that refer to non-standard IDBVersionChangeEvent.dataLoss.
+        https://bugs.webkit.org/show_bug.cgi?id=151850
+
+        Reviewed by Andy Estes.
+
+        * platform/mac-wk1/TestExpectations:
+        
+        * storage/indexeddb/data-corruption-expected.txt: Removed.
+        * storage/indexeddb/data-corruption.html: Removed.
+        * storage/indexeddb/resources/data-corruption.js: Removed.
+
+        * storage/indexeddb/events-expected.txt:
+        * storage/indexeddb/resources/events.js:
+
+2015-12-03  Brady Eidson  <[email protected]>
+
         Modern IDB: storage/indexeddb/cursor-index-delete.html fails.
         https://bugs.webkit.org/show_bug.cgi?id=151847
 

Modified: trunk/LayoutTests/platform/mac-wk1/TestExpectations (193410 => 193411)


--- trunk/LayoutTests/platform/mac-wk1/TestExpectations	2015-12-04 05:55:35 UTC (rev 193410)
+++ trunk/LayoutTests/platform/mac-wk1/TestExpectations	2015-12-04 06:40:16 UTC (rev 193411)
@@ -82,6 +82,7 @@
 storage/indexeddb/cursor-index-delete.html [ Pass ]
 storage/indexeddb/cursor-overloads.html [ Pass ]
 storage/indexeddb/cursor-skip-deleted.html [ Pass ]
+storage/indexeddb/events.html [ Pass ]
 storage/indexeddb/modern [ Pass ]
 storage/indexeddb/mozilla [ Pass ]
 storage/indexeddb/transaction-abort.html [ Pass ]

Deleted: trunk/LayoutTests/storage/indexeddb/data-corruption-expected.txt (193410 => 193411)


--- trunk/LayoutTests/storage/indexeddb/data-corruption-expected.txt	2015-12-04 05:55:35 UTC (rev 193410)
+++ trunk/LayoutTests/storage/indexeddb/data-corruption-expected.txt	2015-12-04 06:40:16 UTC (rev 193411)
@@ -1,26 +0,0 @@
-Test that data inserted into IndexedDB does not get corrupted on disk.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
-
-dbname = "data-corruption.html"
-indexedDB.deleteDatabase(dbname)
-indexedDB.open(dbname)
-setVersionSuccess():
-PASS event.dataLoss is "none"
-trans = event.target.transaction
-PASS trans is non-null.
-db.createObjectStore('storeName')
-addData():
-transaction = db.transaction(['storeName'], 'readwrite')
-request = transaction.objectStore('storeName').add({x: testDate}, 'key')
-addData():
-transaction = db.transaction(['storeName'], 'readonly')
-request = transaction.objectStore('storeName').get('key')
-PASS event.target.result.x.toString() is testDate.toString()
-PASS successfullyParsed is true
-
-TEST COMPLETE
-

Deleted: trunk/LayoutTests/storage/indexeddb/data-corruption.html (193410 => 193411)


--- trunk/LayoutTests/storage/indexeddb/data-corruption.html	2015-12-04 05:55:35 UTC (rev 193410)
+++ trunk/LayoutTests/storage/indexeddb/data-corruption.html	2015-12-04 06:40:16 UTC (rev 193411)
@@ -1,9 +0,0 @@
-<html>
-<head>
-<script src=""
-<script src=""
-</head>
-<body>
-<script src=""
-</body>
-</html>

Modified: trunk/LayoutTests/storage/indexeddb/events-expected.txt (193410 => 193411)


--- trunk/LayoutTests/storage/indexeddb/events-expected.txt	2015-12-04 05:55:35 UTC (rev 193410)
+++ trunk/LayoutTests/storage/indexeddb/events-expected.txt	2015-12-04 06:40:16 UTC (rev 193411)
@@ -8,7 +8,6 @@
 PASS 'IDBVersionChangeEvent' in self is true
 PASS 'oldVersion' in document.createEvent('IDBVersionChangeEvent') is true
 PASS 'newVersion' in document.createEvent('IDBVersionChangeEvent') is true
-PASS 'dataLoss' in document.createEvent('IDBVersionChangeEvent') is true
 PASS successfullyParsed is true
 
 TEST COMPLETE

Deleted: trunk/LayoutTests/storage/indexeddb/resources/data-corruption.js (193410 => 193411)


--- trunk/LayoutTests/storage/indexeddb/resources/data-corruption.js	2015-12-04 05:55:35 UTC (rev 193410)
+++ trunk/LayoutTests/storage/indexeddb/resources/data-corruption.js	2015-12-04 06:40:16 UTC (rev 193411)
@@ -1,45 +0,0 @@
-if (this.importScripts) {
-    importScripts('../../../resources/js-test.js');
-    importScripts('shared.js');
-}
-
-description("Test that data inserted into IndexedDB does not get corrupted on disk.");
-
-indexedDBTest(prepareDatabase, addData);
-function prepareDatabase()
-{
-    db = event.target.result;
-    debug("setVersionSuccess():");
-    shouldBeEqualToString("event.dataLoss", "none");
-    self.trans = evalAndLog("trans = event.target.transaction");
-    shouldBeNonNull("trans");
-    trans._onabort_ = unexpectedAbortCallback;
-
-    evalAndLog("db.createObjectStore('storeName')");
-}
-
-var testDate = new Date('February 24, 1955 12:00:08');
-
-function addData()
-{
-    debug("addData():");
-    var transaction = evalAndLog("transaction = db.transaction(['storeName'], 'readwrite')");
-    var request = evalAndLog("request = transaction.objectStore('storeName').add({x: testDate}, 'key')");
-    request._onerror_ = unexpectedErrorCallback;
-    transaction._oncomplete_ = getData;
-}
-
-function getData()
-{
-    debug("addData():");
-    var transaction = evalAndLog("transaction = db.transaction(['storeName'], 'readonly')");
-    var request = evalAndLog("request = transaction.objectStore('storeName').get('key')");
-    request._onerror_ = unexpectedErrorCallback;
-    request._onsuccess_ = doCheck;
-}
-
-function doCheck()
-{
-    shouldBe("event.target.result.x.toString()", "testDate.toString()");
-    finishJSTest();
-}

Modified: trunk/LayoutTests/storage/indexeddb/resources/events.js (193410 => 193411)


--- trunk/LayoutTests/storage/indexeddb/resources/events.js	2015-12-04 05:55:35 UTC (rev 193410)
+++ trunk/LayoutTests/storage/indexeddb/resources/events.js	2015-12-04 06:40:16 UTC (rev 193411)
@@ -13,7 +13,6 @@
     if ('document' in self) {
         shouldBeTrue("'oldVersion' in document.createEvent('IDBVersionChangeEvent')");
         shouldBeTrue("'newVersion' in document.createEvent('IDBVersionChangeEvent')");
-        shouldBeTrue("'dataLoss' in document.createEvent('IDBVersionChangeEvent')");
     }
 
     finishJSTest();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to