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;