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

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

Issue 2342013002: Revert of [worklets] Introduce ThreadedWorkletMessagingProxy and AnimationWorkletMessagaingProxy. (Closed)
Patch Set: Created 4 years, 3 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/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
deleted file mode 100644
index 5f5e6a79c53129e65bd4963ed6a94ac4d55497c5..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/worklet/resources/import-tests.js
+++ /dev/null
@@ -1,45 +0,0 @@
-// Runs a series of tests related to importing scripts on a worklet.
-//
-// Usage:
-// runImportTests(workletType);
-function runImportTests(worklet) {
- promise_test(function() {
-
- return worklet.import('resources/empty-worklet-script.js').then(function(undefined_arg) {
- assert_equals(undefined_arg, undefined, 'Promise should resolve with no arguments.');
- }).catch(function(error) {
- assert_unreached('unexpected rejection: ' + error);
- });
-
- }, 'Importing a script resolves the given promise.');
-
- promise_test(function() {
-
- return worklet.import('resources/throwing-worklet-script.js').then(function(undefined_arg) {
- assert_equals(undefined_arg, undefined, 'Promise should resolve with no arguments.');
- }).catch(function(error) {
- assert_unreached('unexpected rejection: ' + error);
- });
-
- }, 'Importing a script which throws should still resolve the given promise.');
-
- promise_test(function() {
-
- return worklet.import('non-existant-worklet-script.js').then(function() {
- assert_unreached('import should fail.');
- }).catch(function(error) {
- assert_equals(error.name, 'NetworkError', 'error should be a NetworkError.');
- });
-
- }, 'Importing a non-existant script rejects the given promise with a NetworkError.');
-
- promise_test(function() {
-
- return worklet.import('http://invalid:123$').then(function() {
- assert_unreached('import should fail.');
- }).catch(function(error) {
- assert_equals(error.name, 'SyntaxError', 'error should be a SyntaxError.');
- });
-
- }, 'Attempting to resolve an invalid URL should reject the given promise with a SyntaxError.');
-}

Powered by Google App Engine
This is Rietveld 408576698