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, [ |