Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / plugins / script-tests / navigator-plugins.js
blobb6049691e2f53027d29b86c2ec1985ecf867d3d8
1 description(
2 "Check that navigator.plugins does not contain empty plugin objects"
3 );
5 var hasInvalidPlugin = false;
6 for (var i = 0; i < navigator.plugins.length; ++i) {
7 var plugin = navigator.plugins[i];
8 if (!plugin.description || !plugin.name || !plugin.filename) {
9 hasInvalidPlugin = true;
10 break;
13 shouldBeFalse("hasInvalidPlugin");
15 successfullyParsed = true;