Title: [193867] trunk/LayoutTests
Revision
193867
Author
beid...@apple.com
Date
2015-12-09 14:36:04 -0800 (Wed, 09 Dec 2015)

Log Message

Modern IDB: Some tests expect UInt8Array to be a valid key.
https://bugs.webkit.org/show_bug.cgi?id=152092

Reviewed by Alex Christensen.

Everything that expected UInt8Array to be a valid key needs to be updated to expect it to be invalid.

* platform/mac-wk1/TestExpectations:
* storage/indexeddb/factory-cmp-expected.txt:
* storage/indexeddb/key-type-binary-expected.txt:
* storage/indexeddb/resources/factory-cmp.js:
* storage/indexeddb/resources/key-type-binary.js:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (193866 => 193867)


--- trunk/LayoutTests/ChangeLog	2015-12-09 22:32:42 UTC (rev 193866)
+++ trunk/LayoutTests/ChangeLog	2015-12-09 22:36:04 UTC (rev 193867)
@@ -1,5 +1,20 @@
 2015-12-09  Brady Eidson  <beid...@apple.com>
 
+        Modern IDB: Some tests expect UInt8Array to be a valid key.
+        https://bugs.webkit.org/show_bug.cgi?id=152092
+
+        Reviewed by Alex Christensen.
+
+        Everything that expected UInt8Array to be a valid key needs to be updated to expect it to be invalid.
+
+        * platform/mac-wk1/TestExpectations:
+        * storage/indexeddb/factory-cmp-expected.txt:
+        * storage/indexeddb/key-type-binary-expected.txt:
+        * storage/indexeddb/resources/factory-cmp.js:
+        * storage/indexeddb/resources/key-type-binary.js:
+
+2015-12-09  Brady Eidson  <beid...@apple.com>
+
         Modern IDB: storage/indexeddb/createIndex-after-failure.html fails.
         https://bugs.webkit.org/show_bug.cgi?id=152078
 

Modified: trunk/LayoutTests/platform/mac-wk1/TestExpectations (193866 => 193867)


--- trunk/LayoutTests/platform/mac-wk1/TestExpectations	2015-12-09 22:32:42 UTC (rev 193866)
+++ trunk/LayoutTests/platform/mac-wk1/TestExpectations	2015-12-09 22:36:04 UTC (rev 193867)
@@ -97,7 +97,6 @@
 storage/indexeddb/database-deletepending-flag.html [ Failure ]
 storage/indexeddb/delete-closed-database-object.html [ Failure ]
 storage/indexeddb/delete-in-upgradeneeded-close-in-versionchange.html [ Failure ]
-storage/indexeddb/factory-cmp.html [ Failure ]
 storage/indexeddb/index-basics.html [ Failure ]
 storage/indexeddb/index-count.html [ Failure ]
 storage/indexeddb/index-duplicate-keypaths.html [ Failure ]
@@ -112,7 +111,6 @@
 storage/indexeddb/intversion-two-opens-no-versions.html [ Failure ]
 storage/indexeddb/intversion-upgrades.html [ Failure ]
 storage/indexeddb/key-type-array.html [ Failure ]
-storage/indexeddb/key-type-binary.html [ Failure ]
 storage/indexeddb/lazy-index-types.html [ Failure ]
 storage/indexeddb/metadata.html [ Failure ]
 storage/indexeddb/objectstore-autoincrement.html [ Failure ]

Modified: trunk/LayoutTests/storage/indexeddb/factory-cmp-expected.txt (193866 => 193867)


--- trunk/LayoutTests/storage/indexeddb/factory-cmp-expected.txt	2015-12-09 22:32:42 UTC (rev 193866)
+++ trunk/LayoutTests/storage/indexeddb/factory-cmp-expected.txt	2015-12-09 22:36:04 UTC (rev 193867)
@@ -92,41 +92,9 @@
 PASS indexedDB.cmp('�','𝄞') is 1
 PASS indexedDB.cmp('𝄞','𝄞') is 0
 PASS indexedDB.cmp('�','�') is 0
-PASS indexedDB.cmp('�',new Uint8Array()) is -1
-PASS indexedDB.cmp(new Uint8Array(),'�') is 1
+PASS indexedDB.cmp('�',[]) is -1
+PASS indexedDB.cmp([],'�') is 1
 PASS indexedDB.cmp('�','�') is 0
-PASS indexedDB.cmp(new Uint8Array(),new Uint8Array()) is 0
-PASS indexedDB.cmp(new Uint8Array(),new Uint8Array([0])) is -1
-PASS indexedDB.cmp(new Uint8Array([0]),new Uint8Array()) is 1
-PASS indexedDB.cmp(new Uint8Array(),new Uint8Array()) is 0
-PASS indexedDB.cmp(new Uint8Array([0]),new Uint8Array([0])) is 0
-PASS indexedDB.cmp(new Uint8Array([0]),new Uint8Array([0, 0])) is -1
-PASS indexedDB.cmp(new Uint8Array([0, 0]),new Uint8Array([0])) is 1
-PASS indexedDB.cmp(new Uint8Array([0]),new Uint8Array([0])) is 0
-PASS indexedDB.cmp(new Uint8Array([0, 0]),new Uint8Array([0, 0])) is 0
-PASS indexedDB.cmp(new Uint8Array([0, 0]),new Uint8Array([0, 1])) is -1
-PASS indexedDB.cmp(new Uint8Array([0, 1]),new Uint8Array([0, 0])) is 1
-PASS indexedDB.cmp(new Uint8Array([0, 0]),new Uint8Array([0, 0])) is 0
-PASS indexedDB.cmp(new Uint8Array([0, 1]),new Uint8Array([0, 1])) is 0
-PASS indexedDB.cmp(new Uint8Array([0, 1]),new Uint8Array([1])) is -1
-PASS indexedDB.cmp(new Uint8Array([1]),new Uint8Array([0, 1])) is 1
-PASS indexedDB.cmp(new Uint8Array([0, 1]),new Uint8Array([0, 1])) is 0
-PASS indexedDB.cmp(new Uint8Array([1]),new Uint8Array([1])) is 0
-PASS indexedDB.cmp(new Uint8Array([1]),new Uint8Array([1, 0])) is -1
-PASS indexedDB.cmp(new Uint8Array([1, 0]),new Uint8Array([1])) is 1
-PASS indexedDB.cmp(new Uint8Array([1]),new Uint8Array([1])) is 0
-PASS indexedDB.cmp(new Uint8Array([1, 0]),new Uint8Array([1, 0])) is 0
-PASS indexedDB.cmp(new Uint8Array([1, 0]),new Uint8Array([1, 1])) is -1
-PASS indexedDB.cmp(new Uint8Array([1, 1]),new Uint8Array([1, 0])) is 1
-PASS indexedDB.cmp(new Uint8Array([1, 0]),new Uint8Array([1, 0])) is 0
-PASS indexedDB.cmp(new Uint8Array([1, 1]),new Uint8Array([1, 1])) is 0
-PASS indexedDB.cmp(new Uint8Array([1, 1]),new Uint8Array([255])) is -1
-PASS indexedDB.cmp(new Uint8Array([255]),new Uint8Array([1, 1])) is 1
-PASS indexedDB.cmp(new Uint8Array([1, 1]),new Uint8Array([1, 1])) is 0
-PASS indexedDB.cmp(new Uint8Array([255]),new Uint8Array([255])) is 0
-PASS indexedDB.cmp(new Uint8Array([255]),[]) is -1
-PASS indexedDB.cmp([],new Uint8Array([255])) is 1
-PASS indexedDB.cmp(new Uint8Array([255]),new Uint8Array([255])) is 0
 PASS indexedDB.cmp([],[]) is 0
 PASS indexedDB.cmp([],[-Infinity]) is -1
 PASS indexedDB.cmp([-Infinity],[]) is 1
@@ -216,41 +184,9 @@
 PASS indexedDB.cmp(['�'],['𝄞']) is 1
 PASS indexedDB.cmp(['𝄞'],['𝄞']) is 0
 PASS indexedDB.cmp(['�'],['�']) is 0
-PASS indexedDB.cmp(['�'],[new Uint8Array()]) is -1
-PASS indexedDB.cmp([new Uint8Array()],['�']) is 1
+PASS indexedDB.cmp(['�'],[[]]) is -1
+PASS indexedDB.cmp([[]],['�']) is 1
 PASS indexedDB.cmp(['�'],['�']) is 0
-PASS indexedDB.cmp([new Uint8Array()],[new Uint8Array()]) is 0
-PASS indexedDB.cmp([new Uint8Array()],[new Uint8Array([0])]) is -1
-PASS indexedDB.cmp([new Uint8Array([0])],[new Uint8Array()]) is 1
-PASS indexedDB.cmp([new Uint8Array()],[new Uint8Array()]) is 0
-PASS indexedDB.cmp([new Uint8Array([0])],[new Uint8Array([0])]) is 0
-PASS indexedDB.cmp([new Uint8Array([0])],[new Uint8Array([0, 0])]) is -1
-PASS indexedDB.cmp([new Uint8Array([0, 0])],[new Uint8Array([0])]) is 1
-PASS indexedDB.cmp([new Uint8Array([0])],[new Uint8Array([0])]) is 0
-PASS indexedDB.cmp([new Uint8Array([0, 0])],[new Uint8Array([0, 0])]) is 0
-PASS indexedDB.cmp([new Uint8Array([0, 0])],[new Uint8Array([0, 1])]) is -1
-PASS indexedDB.cmp([new Uint8Array([0, 1])],[new Uint8Array([0, 0])]) is 1
-PASS indexedDB.cmp([new Uint8Array([0, 0])],[new Uint8Array([0, 0])]) is 0
-PASS indexedDB.cmp([new Uint8Array([0, 1])],[new Uint8Array([0, 1])]) is 0
-PASS indexedDB.cmp([new Uint8Array([0, 1])],[new Uint8Array([1])]) is -1
-PASS indexedDB.cmp([new Uint8Array([1])],[new Uint8Array([0, 1])]) is 1
-PASS indexedDB.cmp([new Uint8Array([0, 1])],[new Uint8Array([0, 1])]) is 0
-PASS indexedDB.cmp([new Uint8Array([1])],[new Uint8Array([1])]) is 0
-PASS indexedDB.cmp([new Uint8Array([1])],[new Uint8Array([1, 0])]) is -1
-PASS indexedDB.cmp([new Uint8Array([1, 0])],[new Uint8Array([1])]) is 1
-PASS indexedDB.cmp([new Uint8Array([1])],[new Uint8Array([1])]) is 0
-PASS indexedDB.cmp([new Uint8Array([1, 0])],[new Uint8Array([1, 0])]) is 0
-PASS indexedDB.cmp([new Uint8Array([1, 0])],[new Uint8Array([1, 1])]) is -1
-PASS indexedDB.cmp([new Uint8Array([1, 1])],[new Uint8Array([1, 0])]) is 1
-PASS indexedDB.cmp([new Uint8Array([1, 0])],[new Uint8Array([1, 0])]) is 0
-PASS indexedDB.cmp([new Uint8Array([1, 1])],[new Uint8Array([1, 1])]) is 0
-PASS indexedDB.cmp([new Uint8Array([1, 1])],[new Uint8Array([255])]) is -1
-PASS indexedDB.cmp([new Uint8Array([255])],[new Uint8Array([1, 1])]) is 1
-PASS indexedDB.cmp([new Uint8Array([1, 1])],[new Uint8Array([1, 1])]) is 0
-PASS indexedDB.cmp([new Uint8Array([255])],[new Uint8Array([255])]) is 0
-PASS indexedDB.cmp([new Uint8Array([255])],[[]]) is -1
-PASS indexedDB.cmp([[]],[new Uint8Array([255])]) is 1
-PASS indexedDB.cmp([new Uint8Array([255])],[new Uint8Array([255])]) is 0
 PASS indexedDB.cmp([[]],[[]]) is 0
 PASS indexedDB.cmp([[]],[[], []]) is -1
 PASS indexedDB.cmp([[], []],[[]]) is 1
@@ -600,6 +536,486 @@
 PASS code is 0
 PASS ename is 'DataError'
 Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(self.document.body, new Uint8Array())
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array(), self.document.body)
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(self.document.body, 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', self.document.body)
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array(), 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', new Uint8Array())
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array(), new Uint8Array([0]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([0]), new Uint8Array())
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array(), 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', new Uint8Array())
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([0]), 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', new Uint8Array([0]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([0]), new Uint8Array([0, 0]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([0, 0]), new Uint8Array([0]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([0]), 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', new Uint8Array([0]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([0, 0]), 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', new Uint8Array([0, 0]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([0, 0]), new Uint8Array([0, 1]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([0, 1]), new Uint8Array([0, 0]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([0, 0]), 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', new Uint8Array([0, 0]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([0, 1]), 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', new Uint8Array([0, 1]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([0, 1]), new Uint8Array([1]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([1]), new Uint8Array([0, 1]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([0, 1]), 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', new Uint8Array([0, 1]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([1]), 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', new Uint8Array([1]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([1]), new Uint8Array([1, 0]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([1, 0]), new Uint8Array([1]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([1]), 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', new Uint8Array([1]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([1, 0]), 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', new Uint8Array([1, 0]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([1, 0]), new Uint8Array([1, 1]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([1, 1]), new Uint8Array([1, 0]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([1, 0]), 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', new Uint8Array([1, 0]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([1, 1]), 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', new Uint8Array([1, 1]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([1, 1]), new Uint8Array([255]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([255]), new Uint8Array([1, 1]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([1, 1]), 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', new Uint8Array([1, 1]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([255]), 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', new Uint8Array([255]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([255]), [new Uint8Array()])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array()], new Uint8Array([255]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp(new Uint8Array([255]), 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', new Uint8Array([255]))
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array()], 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', [new Uint8Array()])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array()], [new Uint8Array([0])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([0])], [new Uint8Array()])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array()], 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', [new Uint8Array()])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([0])], 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', [new Uint8Array([0])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([0])], [new Uint8Array([0, 0])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([0, 0])], [new Uint8Array([0])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([0])], 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', [new Uint8Array([0])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([0, 0])], 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', [new Uint8Array([0, 0])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([0, 0])], [new Uint8Array([0, 1])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([0, 1])], [new Uint8Array([0, 0])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([0, 0])], 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', [new Uint8Array([0, 0])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([0, 1])], 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', [new Uint8Array([0, 1])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([0, 1])], [new Uint8Array([1])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([1])], [new Uint8Array([0, 1])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([0, 1])], 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', [new Uint8Array([0, 1])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([1])], 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', [new Uint8Array([1])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([1])], [new Uint8Array([1, 0])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([1, 0])], [new Uint8Array([1])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([1])], 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', [new Uint8Array([1])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([1, 0])], 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', [new Uint8Array([1, 0])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([1, 0])], [new Uint8Array([1, 1])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([1, 1])], [new Uint8Array([1, 0])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([1, 0])], 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', [new Uint8Array([1, 0])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([1, 1])], 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', [new Uint8Array([1, 1])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([1, 1])], [new Uint8Array([255])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([255])], [new Uint8Array([1, 1])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([1, 1])], 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', [new Uint8Array([1, 1])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp([new Uint8Array([255])], 'valid')
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
+Expecting exception from indexedDB.cmp('valid', [new Uint8Array([255])])
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: Failed to execute 'cmp' on 'IDBFactory': The parameter is not a valid key.
 
 compare identical keys
 PASS indexedDB.cmp(0, -0) is 0

Modified: trunk/LayoutTests/storage/indexeddb/key-type-binary-expected.txt (193866 => 193867)


--- trunk/LayoutTests/storage/indexeddb/key-type-binary-expected.txt	2015-12-09 22:32:42 UTC (rev 193866)
+++ trunk/LayoutTests/storage/indexeddb/key-type-binary-expected.txt	2015-12-09 22:36:04 UTC (rev 193867)
@@ -11,59 +11,59 @@
 db.createObjectStore('store');
 
 
-testValidBinaryKeys():
+testInvalidBinaryKeys1():
 trans = db.transaction('store', 'readwrite')
 store = trans.objectStore('store')
 
-store.put(0, new Uint8Array([]));
-PASS request.result.toString() is "[object Uint8Array]"
-PASS [].slice.call(request.result).toString() is [].toString()
-store.get(new Uint8Array([]));
-PASS request.result is 0
+Expecting exception from store.put(0, new Uint8Array([]));
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: The data provided does not meet requirements.
 
-store.put(1, new Uint8Array([0]));
-PASS request.result.toString() is "[object Uint8Array]"
-PASS [].slice.call(request.result).toString() is [0].toString()
-store.get(new Uint8Array([0]));
-PASS request.result is 1
+Expecting exception from store.put(1, new Uint8Array([0]));
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: The data provided does not meet requirements.
 
-store.put(2, new Uint8Array([0, 0]));
-PASS request.result.toString() is "[object Uint8Array]"
-PASS [].slice.call(request.result).toString() is [0, 0].toString()
-store.get(new Uint8Array([0, 0]));
-PASS request.result is 2
+Expecting exception from store.put(2, new Uint8Array([0, 0]));
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: The data provided does not meet requirements.
 
-store.put(3, new Uint8Array([0, 1]));
-PASS request.result.toString() is "[object Uint8Array]"
-PASS [].slice.call(request.result).toString() is [0, 1].toString()
-store.get(new Uint8Array([0, 1]));
-PASS request.result is 3
+Expecting exception from store.put(3, new Uint8Array([0, 1]));
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: The data provided does not meet requirements.
 
-store.put(4, new Uint8Array([1]));
-PASS request.result.toString() is "[object Uint8Array]"
-PASS [].slice.call(request.result).toString() is [1].toString()
-store.get(new Uint8Array([1]));
-PASS request.result is 4
+Expecting exception from store.put(4, new Uint8Array([1]));
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: The data provided does not meet requirements.
 
-store.put(5, new Uint8Array([1, 0]));
-PASS request.result.toString() is "[object Uint8Array]"
-PASS [].slice.call(request.result).toString() is [1, 0].toString()
-store.get(new Uint8Array([1, 0]));
-PASS request.result is 5
+Expecting exception from store.put(5, new Uint8Array([1, 0]));
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: The data provided does not meet requirements.
 
-store.put(6, new Uint8Array([1, 1]));
-PASS request.result.toString() is "[object Uint8Array]"
-PASS [].slice.call(request.result).toString() is [1, 1].toString()
-store.get(new Uint8Array([1, 1]));
-PASS request.result is 6
+Expecting exception from store.put(6, new Uint8Array([1, 1]));
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: The data provided does not meet requirements.
 
-store.put(7, new Uint8Array([255]));
-PASS request.result.toString() is "[object Uint8Array]"
-PASS [].slice.call(request.result).toString() is [255].toString()
-store.get(new Uint8Array([255]));
-PASS request.result is 7
+Expecting exception from store.put(7, new Uint8Array([255]));
+PASS Exception was thrown.
+PASS code is 0
+PASS ename is 'DataError'
+Exception message: The data provided does not meet requirements.
 
-testInvalidBinaryKeys():
+testInvalidBinaryKeys2():
 trans = db.transaction('store', 'readwrite')
 store = trans.objectStore('store')
 
@@ -71,61 +71,61 @@
 PASS Exception was thrown.
 PASS code is 0
 PASS ename is 'DataError'
-Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is not a valid key.
+Exception message: The data provided does not meet requirements.
 
 Expecting exception from store.put('value', new Uint16Array([1,2,3]))
 PASS Exception was thrown.
 PASS code is 0
 PASS ename is 'DataError'
-Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is not a valid key.
+Exception message: The data provided does not meet requirements.
 
 Expecting exception from store.put('value', new Uint32Array([1,2,3]))
 PASS Exception was thrown.
 PASS code is 0
 PASS ename is 'DataError'
-Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is not a valid key.
+Exception message: The data provided does not meet requirements.
 
 Expecting exception from store.put('value', new Int8Array([1,2,3]))
 PASS Exception was thrown.
 PASS code is 0
 PASS ename is 'DataError'
-Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is not a valid key.
+Exception message: The data provided does not meet requirements.
 
 Expecting exception from store.put('value', new Int16Array([1,2,3]))
 PASS Exception was thrown.
 PASS code is 0
 PASS ename is 'DataError'
-Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is not a valid key.
+Exception message: The data provided does not meet requirements.
 
 Expecting exception from store.put('value', new Int32Array([1,2,3]))
 PASS Exception was thrown.
 PASS code is 0
 PASS ename is 'DataError'
-Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is not a valid key.
+Exception message: The data provided does not meet requirements.
 
 Expecting exception from store.put('value', new Float32Array([1,2,3]))
 PASS Exception was thrown.
 PASS code is 0
 PASS ename is 'DataError'
-Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is not a valid key.
+Exception message: The data provided does not meet requirements.
 
 Expecting exception from store.put('value', new Float64Array([1,2,3]))
 PASS Exception was thrown.
 PASS code is 0
 PASS ename is 'DataError'
-Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is not a valid key.
+Exception message: The data provided does not meet requirements.
 
 Expecting exception from store.put('value', new Uint8Array([1,2,3]).buffer)
 PASS Exception was thrown.
 PASS code is 0
 PASS ename is 'DataError'
-Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is not a valid key.
+Exception message: The data provided does not meet requirements.
 
 Expecting exception from store.put('value', new DataView(new Uint8Array([1,2,3]).buffer))
 PASS Exception was thrown.
 PASS code is 0
 PASS ename is 'DataError'
-Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is not a valid key.
+Exception message: The data provided does not meet requirements.
 PASS successfullyParsed is true
 
 TEST COMPLETE

Modified: trunk/LayoutTests/storage/indexeddb/resources/factory-cmp.js (193866 => 193867)


--- trunk/LayoutTests/storage/indexeddb/resources/factory-cmp.js	2015-12-09 22:32:42 UTC (rev 193866)
+++ trunk/LayoutTests/storage/indexeddb/resources/factory-cmp.js	2015-12-09 22:36:04 UTC (rev 193867)
@@ -49,15 +49,6 @@
         "'\uD834\uDD1E'", // U+1D11E MUSICAL SYMBOL G-CLEF (UTF-16 surrogate pair)
         "'\uFFFD'", // U+FFFD REPLACEMENT CHARACTER
 
-        "new Uint8Array()",
-        "new Uint8Array([0])",
-        "new Uint8Array([0, 0])",
-        "new Uint8Array([0, 1])",
-        "new Uint8Array([1])",
-        "new Uint8Array([1, 0])",
-        "new Uint8Array([1, 1])",
-        "new Uint8Array([255])",
-
         "[]",
 
         "[-Infinity]",
@@ -86,15 +77,6 @@
         "['\uD834\uDD1E']", // U+1D11E MUSICAL SYMBOL G-CLEF (UTF-16 surrogate pair)
         "['\uFFFD']", // U+FFFD REPLACEMENT CHARACTER
 
-        "[new Uint8Array()]",
-        "[new Uint8Array([0])]",
-        "[new Uint8Array([0, 0])]",
-        "[new Uint8Array([0, 1])]",
-        "[new Uint8Array([1])]",
-        "[new Uint8Array([1, 0])]",
-        "[new Uint8Array([1, 1])]",
-        "[new Uint8Array([255])]",
-
         "[[]]",
 
         "[[], []]",
@@ -132,7 +114,23 @@
         "/regex/",
         "self",
         "self.document",
-        "self.document.body"
+        "self.document.body",
+        "new Uint8Array()",
+        "new Uint8Array([0])",
+        "new Uint8Array([0, 0])",
+        "new Uint8Array([0, 1])",
+        "new Uint8Array([1])",
+        "new Uint8Array([1, 0])",
+        "new Uint8Array([1, 1])",
+        "new Uint8Array([255])",
+        "[new Uint8Array()]",
+        "[new Uint8Array([0])]",
+        "[new Uint8Array([0, 0])]",
+        "[new Uint8Array([0, 1])]",
+        "[new Uint8Array([1])]",
+        "[new Uint8Array([1, 0])]",
+        "[new Uint8Array([1, 1])]",
+        "[new Uint8Array([255])]",
     ];
 
     var i, key1, key2;

Modified: trunk/LayoutTests/storage/indexeddb/resources/key-type-binary.js (193866 => 193867)


--- trunk/LayoutTests/storage/indexeddb/resources/key-type-binary.js	2015-12-09 22:32:42 UTC (rev 193866)
+++ trunk/LayoutTests/storage/indexeddb/resources/key-type-binary.js	2015-12-09 22:36:04 UTC (rev 193867)
@@ -5,7 +5,7 @@
 
 description("Test IndexedDB binary keys");
 
-indexedDBTest(prepareDatabase, testValidBinaryKeys);
+indexedDBTest(prepareDatabase, testInvalidBinaryKeys1);
 function prepareDatabase()
 {
     db = event.target.result;
@@ -14,7 +14,7 @@
     debug("");
 }
 
-function testValidBinaryKeys()
+function testInvalidBinaryKeys1()
 {
     preamble();
     evalAndLog("trans = db.transaction('store', 'readwrite')");
@@ -35,29 +35,18 @@
         if (!cases.length)
             return;
 
-        key = cases.shift();
-        value = n++;
-
-        debug("");
-        request = evalAndLog("store.put(" + JSON.stringify(value) + ", new Uint8Array(" + key + "));");
-        request._onerror_ = unexpectedErrorCallback;
-        request._onsuccess_ = function() {
-            shouldBeEqualToString("request.result.toString()", "[object Uint8Array]");
-            shouldBe("[].slice.call(request.result).toString()", key + ".toString()");
-
-            request = evalAndLog("store.get(new Uint8Array(" + key + "));");
-            request._onerror_ = unexpectedErrorCallback;
-            request._onsuccess_ = function() {
-                shouldBe("request.result", JSON.stringify(value));
-                testCase();
-            };
-        };
+        while (cases.length) {
+            key = cases.shift();
+            value = n++;
+            debug("");
+            evalAndExpectException("store.put(" + JSON.stringify(value) + ", new Uint8Array(" + key + "));", "0", "'DataError'");
+        }
     }());
 
-    trans._oncomplete_ = testInvalidBinaryKeys;
+    trans._oncomplete_ = testInvalidBinaryKeys2;
 }
 
-function testInvalidBinaryKeys()
+function testInvalidBinaryKeys2()
 {
     preamble();
     evalAndLog("trans = db.transaction('store', 'readwrite')");
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to