Index: third_party/WebKit/LayoutTests/http/tests/worklet/resources/import-tests.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/worklet/resources/import-tests.js b/third_party/WebKit/LayoutTests/http/tests/worklet/resources/import-tests.js |
index 2ce11fe3b8beb6751ed8c9e7d9967ec3e77b4e88..57300dea9e544bdf6bdba7334ff9ee527830a857 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/worklet/resources/import-tests.js |
+++ b/third_party/WebKit/LayoutTests/http/tests/worklet/resources/import-tests.js |
@@ -22,6 +22,18 @@ function runImportTests(worklet, opt_path) { |
}, 'Importing scripts resolves all the given promises.'); |
promise_test(function() { |
+ return worklet.addModule(path + 'resources/import-nested-worklet-script.js').then(function(undefined_arg) { |
+ assert_equals(undefined_arg, undefined, 'Promise should resolve with no arguments.'); |
+ }); |
+ }, 'Importing nested scripts resolves the given promise'); |
+ |
+ promise_test(function() { |
+ return worklet.addModule(path + 'resources/import-cyclic-worklet-script.js').then(function(undefined_arg) { |
+ assert_equals(undefined_arg, undefined, 'Promise should resolve with no arguments.'); |
+ }); |
+ }, 'Importing cyclic scripts resolves the given promise'); |
+ |
+ promise_test(function() { |
return worklet.addModule(path + 'resources/throwing-worklet-script.js').then(function(undefined_arg) { |
assert_equals(undefined_arg, undefined, 'Promise should resolve with no arguments.'); |
}); |