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

Unified Diff: third_party/WebKit/LayoutTests/fast/workers/resources/worker-with-perfobs.js

Issue 2953993003: Add LayoutTest for PerformanceObserver inside Worker (Closed)
Patch Set: DontExpose Created 3 years, 6 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/fast/workers/resources/worker-with-perfobs.js
diff --git a/third_party/WebKit/LayoutTests/fast/workers/resources/worker-with-perfobs.js b/third_party/WebKit/LayoutTests/fast/workers/resources/worker-with-perfobs.js
new file mode 100644
index 0000000000000000000000000000000000000000..3c326bb00e0722c9f3a7fbd6138601bb2a7a4b4e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/workers/resources/worker-with-perfobs.js
@@ -0,0 +1,7 @@
+try {
tdresser 2017/07/04 14:31:46 Rename file to worker-with-performance-observer.js
npm 2017/07/07 14:45:08 Done.
+ var obs = new PerformanceObserver(function () { return true; });
tdresser 2017/07/04 14:31:46 We can use fancy new JS here, so we might as well
npm 2017/07/07 14:45:08 Done.
+ postMessage("SUCCESS");
+}
+catch (ex) {
tdresser 2017/07/04 14:31:46 Put on same line as closing brace above.
npm 2017/07/07 14:45:09 Done.
+ postMessage("FAILURE");
+}

Powered by Google App Engine
This is Rietveld 408576698