| 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>
|
|
|