We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1950bc8 commit d44a610Copy full SHA for d44a610
test/specs/BrowserSpec.js
@@ -186,7 +186,7 @@ describe("Browser functions", function () {
186
});
187
188
ifNotInPhantomJsIt("should support window.matchMedia() with 'height' media queries", function (done) {
189
- doc.documentElement.innerHTML = '<body onload="setTimeout(function () {document.body.innerHTML = window.matchMedia(\'(min-height: 123px)\').matches; }, 0);"></body>';
+ doc.documentElement.innerHTML = '<body onload="setTimeout(function () {document.body.innerHTML = window.matchMedia(\'(min-height: 123px)\').matches; }, 10);"></body>';
190
191
browser.executeJavascript(doc.documentElement, optionsWithViewport(10, 123)).then(function (result) {
192
expect(result.document.body.innerHTML).toEqual('true');
0 commit comments