3 <script src="../inspector-test.js"></script>
4 <script src="../resources-test.js"></script>
5 <link rel="stylesheet" href="resources/stylesheet-text-plain.php" type="text/css">
11 InspectorTest.runAfterResourcesAreFinished(["stylesheet-text-plain.php"], step1);
15 WebInspector.resourceTreeModel.forAllResources(findCSSResource);
16 function findCSSResource(resource)
18 if (resource.url.indexOf("stylesheet-text-plain.php") !== -1)
19 cssResource = resource;
21 InspectorTest.addResult(cssResource.url);
22 InspectorTest.assertEquals(cssResource.resourceType(), WebInspector.resourceTypes.Stylesheet, "Resource type should be Stylesheet.");
23 InspectorTest.assertTrue(!cssResource.failed, "Resource loading failed.");
24 cssResource.requestContent(step2);
29 InspectorTest.addResult("Resource.content: " + cssResource.content);
30 InspectorTest.completeTest();
35 <body onload="runTest()">
36 <p>Tests that content is correctly shown for css loaded with invalid mime type in quirks mode.</p>
37 <a href="https://bugs.webkit.org/show_bug.cgi?id=80528">Bug 80528</a>