puppeteer/third_party/phantomjs/test/module/webpage/https-good-cert.js
2017-05-11 00:06:41 -07:00

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