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

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

Issue 2456733002: DevTools: Make WorkerThreadDebugger available for Worklets (Closed)
Patch Set: address review comments Created 4 years, 1 month 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/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.');
+}

Powered by Google App Engine
This is Rietveld 408576698