This file contains hidden or 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
| #!/usr/bin/env ruby | |
| # | |
| # Sometimes massive failure can cause JsTestDriver to hang | |
| # To debug those cases, it's easier to run test cases one by one | |
| # to track which test case is causing trouble. | |
| # | |
| # This script also helps test less capable browsers such as IE6, | |
| # which can get overwhelmed while trying to run too many tests too | |
| # rapidly. | |
| # |
This file contains hidden or 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 block of code injects our source in the content scope and then calls the | |
| // passed callback there. The whole script runs in both GM and page content, but | |
| // since we have no other code that does anything, the Greasemonkey sandbox does | |
| // nothing at all when it has spawned the page script, which gets to use jQuery. | |
| // (jQuery unfortunately degrades much when run in Mozilla's javascript sandbox) | |
| (function(run_me_in_page_scope) { | |
| if ('undefined' == typeof __RUNS_IN_PAGE_SCOPE__) { // unsandbox, please! | |
| var src = arguments.callee.caller.toString(), | |
| script = document.createElement('script'); | |
| script.setAttribute("type", "application/javascript"); |
NewerOlder