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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/testutils.js

Issue 263903005: Fork of https://codereview.chromium.org/265943003 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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: LayoutTests/http/tests/serviceworker/resources/testutils.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/testutils.js b/LayoutTests/http/tests/serviceworker/resources/testutils.js
new file mode 100644
index 0000000000000000000000000000000000000000..8e640693bb74a75ad76c8a979cab46ccaff7fe21
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/resources/testutils.js
@@ -0,0 +1,8 @@
+function withIframe(url, f) {
+ var frame = document.createElement('iframe');
+ frame.src = url;
+ frame.onload = function() {
+ f(frame);
+ };
+ document.body.appendChild(frame);
+}

Powered by Google App Engine
This is Rietveld 408576698