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

Unified Diff: third_party/WebKit/LayoutTests/storage/indexeddb/observer-workers.html

Issue 2449563002: [IndexedDB] Add Observer Tests (Closed)
Patch Set: Finished suite coverage Created 4 years, 2 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: third_party/WebKit/LayoutTests/storage/indexeddb/observer-workers.html
diff --git a/third_party/WebKit/LayoutTests/storage/indexeddb/observer-workers.html b/third_party/WebKit/LayoutTests/storage/indexeddb/observer-workers.html
new file mode 100644
index 0000000000000000000000000000000000000000..5bb098d176a82f6003002250976f79adf7f367eb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/storage/indexeddb/observer-workers.html
@@ -0,0 +1,25 @@
+<html>
+<title>IndexedDB: Observer Constructor Tests</title>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="resources/generic-idb-operations.js"></script>
+<script src="resources/observer-init.js"></script>
+<script>
+
+var startObserving = function() {
+ var testWorker = new Worker('resources/observer-tests.js');
+ testWorker.addEventListener('message', function(event) {
+ if (event.data === 200) {
+ fetch_tests_from_worker(new Worker('resources/observer-actions.js'));
+ }
+ });
+ fetch_tests_from_worker(testWorker);
+}
+
+async_test(function(t) {
+ initObserverTestState(t, startObserving);
+}, 'IDB Observers [Init]: Record all operations.');
+
+</script>
+
+</html>

Powered by Google App Engine
This is Rietveld 408576698