Index: LayoutTests/http/tests/inspector/network/stylesheet-as-text-loading.html |
diff --git a/LayoutTests/http/tests/inspector/network/script-as-text-loading.html b/LayoutTests/http/tests/inspector/network/stylesheet-as-text-loading.html |
similarity index 53% |
copy from LayoutTests/http/tests/inspector/network/script-as-text-loading.html |
copy to LayoutTests/http/tests/inspector/network/stylesheet-as-text-loading.html |
index 0a021a7c12f0e012f1b751d756808b4eec6e6260..05952de69d2dc40a01eadb9843330a8b3ae7a3ef 100644 |
--- a/LayoutTests/http/tests/inspector/network/script-as-text-loading.html |
+++ b/LayoutTests/http/tests/inspector/network/stylesheet-as-text-loading.html |
@@ -3,18 +3,17 @@ |
<script src="../inspector-test.js"></script> |
<script src="../console-test.js"></script> |
<script> |
-function loadScript() |
+function loadStylesheet() |
{ |
- var s = document.createElement("script"); |
- s.src = "resources/script-as-text.php"; |
+ var s = document.createElement("link"); |
+ s.rel = "stylesheet"; |
+ s.href = "resources/stylesheet-as-text.php"; |
document.body.appendChild(s); |
} |
- |
function test() |
{ |
InspectorTest.addConsoleSniffer(step1); |
- InspectorTest.evaluateInPage("loadScript()"); |
- |
+ InspectorTest.evaluateInPage("loadStylesheet()"); |
function step1() |
{ |
InspectorTest.dumpConsoleMessages(); |
@@ -24,7 +23,6 @@ function test() |
</script> |
</head> |
<body onload="runTest()"> |
-<p>Tests console message when script is loaded with incorrect text/html mime type.</p> |
-<a href="https://bugs.webkit.org/show_bug.cgi?id=69972">Bug 69972</a> |
+<p>Tests console message when stylesheet is loaded with incorrect text/html mime type.</p> |
</body> |
-</html> |
+</html> |