<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description(
"Test for bug 10038: REGRESSION: Length of navigator.mimeTypes collection returns number of installed plugins, not number of registered mime types."
);

var numberOfMimeTypes = 0;
for (var i = 0; i < navigator.plugins.length; ++i) {
    var plugin = navigator.plugins[i];
    numberOfMimeTypes += plugin.length;
}

shouldBeTrue("navigator.mimeTypes.length == numberOfMimeTypes");
shouldBe("navigator.mimeTypes[navigator.mimeTypes.length+1]", "undefined");

successfullyParsed = true;
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>
