Index: third_party/WebKit/LayoutTests/http/tests/worklet/chromium/resources/console-tests.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/worklet/chromium/resources/console-tests.js b/third_party/WebKit/LayoutTests/http/tests/worklet/chromium/resources/console-tests.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7071098b1826831cba3ef4208b4f316f37a509eb |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/worklet/chromium/resources/console-tests.js |
@@ -0,0 +1,16 @@ |
+// Runs a series of tests related to console output on a worklet. |
+// |
+// Usage: |
+// runConsoleTests(workletType); |
+function runConsoleTests(worklet, opt_path) { |
+ const path = opt_path || ''; |
+ |
+ promise_test(function() { |
+ return worklet.import(path + 'resources/console-worklet-script.js').then(function(undefined_arg) { |
+ // Results should be verified by a test expectation file. |
+ }).catch(function(error) { |
+ assert_unreached('unexpected rejection: ' + error); |
+ }); |
+ |
+ }, 'Console output on a Worklet.'); |
+} |