blob: e2066361469111136e7b3ff4adda9327c31262c1 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
@media all {
/* This is a comment to use some space before the unused rule */
.unused {
color: green;
-webkit-opacity: 1;
opacity: 1;
}
}
</style>
<script>
JSON = {};
</script>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="audits-test.js"></script>
<!-- These scripts are needed to result in a violation of the max JS resource count from the same domain -->
<script src="resources/audits-script1.js"></script>
<link rel="stylesheet" href="resources/audits-style1.css" type="text/css">
<script src="resources/audits-script2.js"></script>
<script>
var test = function()
{
InspectorTest.reloadPage(step1);
function step1()
{
WebInspector.AuditRuleResult.resourceDomain = function() {
return "[domain]";
};
var launcherView = WebInspector.panels.audits._launcherView;
launcherView._selectAllClicked(true);
launcherView._auditPresentStateElement.checked = true;
launcherView._launchButtonClicked();
InspectorTest.runAfterPendingDispatches(step2);
}
function step2()
{
InspectorTest.collectAuditResults();
InspectorTest.completeTest();
}
}
</script>
</head>
<body onload="runTest()">
Tests audit rules.
<style>
.violation { color: red; -webkit-border-radius: 3px; }
</style>
<link rel="stylesheet" href="resources/audits-style1.css" type="text/css">
<img src="foo1.jpg">
<img src="foo2.jpg" width=100>
<img src="foo3.jpg" style="position: absolute">
<img src="foo4.jpg" style="width: 16px; height: 16px">
</body>
</html>