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

Unified Diff: third_party/WebKit/LayoutTests/resources/mojo-helpers.js

Issue 1472693004: [Do not commit] Sample USB layout tests with Mojo service mocks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@usb-testing-4
Patch Set: rebase Created 4 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/usb/getDevice.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/resources/mojo-helpers.js
diff --git a/third_party/WebKit/LayoutTests/resources/mojo-helpers.js b/third_party/WebKit/LayoutTests/resources/mojo-helpers.js
index 625d7fdfe46e06c320489bf8f8267644dfb9c658..9abc3302b2fa471cf9451379ae1c72f757798e85 100644
--- a/third_party/WebKit/LayoutTests/resources/mojo-helpers.js
+++ b/third_party/WebKit/LayoutTests/resources/mojo-helpers.js
@@ -4,14 +4,14 @@
*/
'use strict';
+// Fix up the global window.define, since all baked-in Mojo modules expect to
+// find it there.
+window.define = mojo.define;
+
// Runs a promise_test which depends on the Mojo system API modules available to
// all layout tests. The test implementation function is called with an Object
// that exposes common Mojo module interfaces.
function mojo_test(func, name, properties) {
- // Fix up the global window.define, since all baked-in Mojo modules expect to
- // find it there.
- window.define = mojo.define;
-
promise_test(() => {
return new Promise((resolve, reject) => {
define('Mojo layout test module: ' + name, [
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/usb/getDevice.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698