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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/worklet/resources/import-tests.js

Issue 2906013002: Worklet: Add layout tests for module import statements on WorkletGlobalScope (Closed)
Patch Set: fix 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/worklet/resources/import-nested-worklet-script.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.');
});
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/worklet/resources/import-nested-worklet-script.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698