diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
commit | d8bbc7858622b6d9c278469aab701ca0b609cddf (patch) | |
tree | eff41dc61d9f714852212739e6b3738b82a2af87 /testing/web-platform/tests/IndexedDB/idbobjectstore_deleted.htm | |
parent | Releasing progress-linux version 125.0.3-1~progress7.99u1. (diff) | |
download | firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip |
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/IndexedDB/idbobjectstore_deleted.htm')
-rw-r--r-- | testing/web-platform/tests/IndexedDB/idbobjectstore_deleted.htm | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_deleted.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_deleted.htm deleted file mode 100644 index 5ccc8fdb1b..0000000000 --- a/testing/web-platform/tests/IndexedDB/idbobjectstore_deleted.htm +++ /dev/null @@ -1,50 +0,0 @@ -<!DOCTYPE html> -<meta charset=utf-8> -<title>Attempting to use deleted IDBObjectStore</title> -<link rel=help href="http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#object-store"> -<link rel=assert title="InvalidStateError Occurs if a request is made on a source object that has been deleted or removed."> -<link rel=author href="mailto:odinho@opera.com" title="Odin Hørthe Omdal"> -<script src=/resources/testharness.js></script> -<script src=/resources/testharnessreport.js></script> -<script src=resources/support.js></script> - -<script> - var db, - add_success = false, - t = async_test() - - var open_rq = createdb(t); - open_rq.onupgradeneeded = function(e) { - db = e.target.result; - - var objStore = db.createObjectStore("store", { autoIncrement: true }); - assert_equals(db.objectStoreNames[0], "store", "objectStoreNames"); - - var rq_add = objStore.add(1); - rq_add.onsuccess = function() { add_success = true; }; - rq_add.onerror = fail(t, 'rq_add.error'); - - objStore.createIndex("idx", "a"); - db.deleteObjectStore("store"); - assert_equals(db.objectStoreNames.length, 0, "objectStoreNames.length after delete"); - - const exc = "InvalidStateError" - assert_throws_dom(exc, function() { objStore.add(2); }); - assert_throws_dom(exc, function() { objStore.put(3); }); - assert_throws_dom(exc, function() { objStore.get(1); }); - assert_throws_dom(exc, function() { objStore.clear(); }); - assert_throws_dom(exc, function() { objStore.count(); }); - assert_throws_dom(exc, function() { objStore.delete(1); }); - assert_throws_dom(exc, function() { objStore.openCursor(); }); - assert_throws_dom(exc, function() { objStore.index("idx"); }); - assert_throws_dom(exc, function() { objStore.deleteIndex("idx"); }); - assert_throws_dom(exc, function() { objStore.createIndex("idx2", "a"); }); - } - - open_rq.onsuccess = function() { - assert_true(add_success, "First add was successful"); - t.done(); - } -</script> - -<div id=log></div> |