Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Unified Diff: LayoutTests/http/tests/inspector/network/stylesheet-as-text-loading.html

Issue 922213004: DevTools: Ignore mimetype mismatch for Image, Script, StyleSheet (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase-update was drunk Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698