puppeteer/third_party/phantomjs/test/module/webpage/https-good-cert.js

15 lines
499 B
JavaScript
Raw Normal View History

2017-05-11 07:06:41 +00:00
//! 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");