1
1
mirror of https://github.com/ariya/phantomjs.git synced 2024-09-11 12:55:33 +03:00
phantomjs/test/regression/pjs-10690.js
Zack Weinberg f69d44b829 Don't hardwire listening ports for the test HTTP(S) servers.
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).
2015-10-20 17:11:36 -04:00

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");