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

Unified Diff: LayoutTests/storage/indexeddb/key-type-binary-expected.txt

Issue 1087923003: Indexed DB: Adopt BufferSource model for binary keys (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update test's shared lib usage Created 5 years, 7 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
Index: LayoutTests/storage/indexeddb/key-type-binary-expected.txt
diff --git a/LayoutTests/storage/indexeddb/key-type-binary-expected.txt b/LayoutTests/storage/indexeddb/key-type-binary-expected.txt
deleted file mode 100644
index 6cbcd95579ebce348114376d08200b9fac97a405..0000000000000000000000000000000000000000
--- a/LayoutTests/storage/indexeddb/key-type-binary-expected.txt
+++ /dev/null
@@ -1,132 +0,0 @@
-Test IndexedDB binary keys
-
-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 = "key-type-binary.html"
-indexedDB.deleteDatabase(dbname)
-indexedDB.open(dbname)
-db.createObjectStore('store');
-
-
-testValidBinaryKeys():
-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
-
-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
-
-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
-
-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
-
-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
-
-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
-
-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
-
-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
-
-testInvalidBinaryKeys():
-trans = db.transaction('store', 'readwrite')
-store = trans.objectStore('store')
-
-Expecting exception from store.put('value', new Uint8ClampedArray([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.
-
-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.
-
-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.
-
-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.
-
-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.
-
-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.
-
-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.
-
-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.
-
-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.
-
-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.
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
« no previous file with comments | « LayoutTests/storage/indexeddb/key-type-binary.html ('k') | LayoutTests/storage/indexeddb/resources/key-type-binary.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698