mirror of
https://github.com/ariya/phantomjs.git
synced 2024-09-11 12:55:33 +03:00
f69d44b829
Instead, run-tests.py asks the kernel to assign a random unused port number for each, and then sets environment variables TEST_HTTP_BASE and TEST_HTTPS_BASE to the base URLs of each server. In tests that use testharness.js, these are exposed as global variables with the same name; tests that don't use the harness will need to pick them out of require('system').env if they need them. (Currently there are no such tests.) Part of issue #13478 (test suite overhaul).
15 lines
461 B
JavaScript
15 lines
461 B
JavaScript
// Issue 10690: the second page load used to crash on OSX.
|
|
|
|
var url = TEST_HTTP_BASE + 'regression/pjs-10690/index.html';
|
|
function do_test() {
|
|
var page = require('webpage').create();
|
|
|
|
page.open(url, this.step_func_done (function (status) {
|
|
assert_equals(status, "success");
|
|
page.release();
|
|
}));
|
|
}
|
|
|
|
async_test(do_test, "load a page with a downloadable font, once");
|
|
async_test(do_test, "load a page with a downloadable font, again");
|