mirror of
https://github.com/encounter/phantomjs.git
synced 2026-03-30 11:35:11 -07:00
18 lines
477 B
JavaScript
18 lines
477 B
JavaScript
var assert = require('../../assert');
|
|
var webpage = require('webpage');
|
|
|
|
var page = webpage.create();
|
|
|
|
var pluginLength = page.evaluate(function() {
|
|
return window.navigator.plugins.length;
|
|
});
|
|
assert.equal(pluginLength, 0);
|
|
|
|
page.open('http://localhost:9180/hello.html', function (status) {
|
|
assert.equal(status, 'success');
|
|
var pluginLength = page.evaluate(function() {
|
|
return window.navigator.plugins.length;
|
|
});
|
|
assert.equal(pluginLength, 0);
|
|
});
|