mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
15 lines
499 B
JavaScript
15 lines
499 B
JavaScript
//! unsupported
|
|
//! snakeoil
|
|
async_test(function () {
|
|
// This loads the same page as https-bad-cert.js, but tells
|
|
// PhantomJS to trust the snakeoil certificate
|
|
// that the test HTTPS server uses, so it should succeed.
|
|
|
|
var page = require('webpage').create();
|
|
var url = TEST_HTTPS_BASE;
|
|
page.onResourceError = this.unreached_func();
|
|
page.open(url, this.step_func_done(function (status) {
|
|
assert_equals(status, "success");
|
|
}));
|
|
}, "loading an HTTPS webpage");
|