forked from ariya/phantomjs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add page.settings.scriptTimeout and plumb it through to JSC.
The underlying JavaScriptCore mechanism for interrupting scripts has changed, and requires all-new glue in the QtWebKit layer. PhantomJS issue ariya#12504.
- Loading branch information
Showing
14 changed files
with
130 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
async_test(function () { | ||
var page = require('webpage').create(); | ||
|
||
page.settings.scriptTimeout = 0.25; | ||
page.onLongRunningScript = this.step_func_done(function () { | ||
page.stopJavaScript(); | ||
return true; | ||
}); | ||
|
||
page.open(TEST_HTTP_BASE + "js-infinite-loop.html", | ||
this.step_func(function (s) { | ||
assert_equals(s, "success"); | ||
})); | ||
|
||
}, "page.onLongRunningScript can interrupt scripts", { | ||
skip: true // https://github.com/ariya/phantomjs/issues/13490 | ||
// The underlying WebKit feature is so broken that an | ||
// infinite loop in a _page_ script prevents timeouts | ||
// from firing in the _controller_! | ||
}); | ||
}, "page.onLongRunningScript can interrupt scripts"); |