| Index: third_party/WebKit/LayoutTests/editing/spelling/resources/util.js
|
| diff --git a/third_party/WebKit/LayoutTests/editing/spelling/resources/util.js b/third_party/WebKit/LayoutTests/editing/spelling/resources/util.js
|
| index 8d6e5d94b9242f91d8562751794bb2f91f7eb79f..e052a1b49e7f7b0cd7374da13e56b8bca2856d43 100644
|
| --- a/third_party/WebKit/LayoutTests/editing/spelling/resources/util.js
|
| +++ b/third_party/WebKit/LayoutTests/editing/spelling/resources/util.js
|
| @@ -23,6 +23,7 @@ function initSpellTest(testElementId, testText, testFunction, opt_doNotFinishTes
|
| log("FAIL Incomplete test environment");
|
| return;
|
| }
|
| + testRunner.setMockSpellCheckerEnabled(true);
|
| testFunctionCallback = testFunction;
|
| jsTestIsAsync = true;
|
| internals.settings.setSmartInsertDeleteEnabled(true);
|
| @@ -85,11 +86,12 @@ function runNextStep(test, steps, assertions) {
|
| function runSpellingTest(steps, assertions, opt_title)
|
| {
|
| var t = async_test(opt_title);
|
| - if (!window.internals) {
|
| - t.step(() => assert_unreached('internals is required for this test'));
|
| + if (!window.internals || !window.testRunner) {
|
| + t.step(() => assert_unreached('Incomplete test environment'));
|
| t.done();
|
| return;
|
| }
|
|
|
| + testRunner.setMockSpellCheckerEnabled(true);
|
| runNextStep(t, steps, assertions);
|
| }
|
|
|