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

Side by Side Diff: third_party/WebKit/LayoutTests/storage/indexeddb/shared-array-buffer-throws.html

Issue 2845623002: Revert of SharedArrayBuffer throws serializing to indexeddb (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>IndexedDB: Attempting to serialize a SharedArrayBuffer should throw</titl e>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script src="resources/testharness-helpers.js"></script>
6 <script>
7
8 if (window.SharedArrayBuffer) {
9 indexeddb_test(
10 (t, db) => {
11 db.createObjectStore('store');
12 },
13 (t, db) => {
14 const sab = new SharedArrayBuffer(256);
15 const tx = db.transaction('store', 'readwrite');
16 const store = tx.objectStore('store');
17
18 assert_throws("DataCloneError", () => {
19 store.put({sab: sab}, 'key');
20 });
21 t.done();
22 },
23 'Serializing SharedArrayBuffer throws DataClone error.');
24 } else {
25 done();
26 }
27
28 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698