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

Unified Diff: LayoutTests/http/tests/inspector/network/script-as-text-loading-data-url.html

Issue 16433002: Prepopulate the memoryCache with data:uri images. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update TestExpectations Created 7 years, 6 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/script-as-text-loading-data-url.html
diff --git a/LayoutTests/http/tests/inspector/network/script-as-text-loading-data-url.html b/LayoutTests/http/tests/inspector/network/script-as-text-loading-data-url.html
new file mode 100644
index 0000000000000000000000000000000000000000..b519aa4162519623ab4740db18a0853aca17dc9e
--- /dev/null
+++ b/LayoutTests/http/tests/inspector/network/script-as-text-loading-data-url.html
@@ -0,0 +1,30 @@
+<html>
+<head>
+<script src="../inspector-test.js"></script>
+<script src="../console-test.js"></script>
+<script>
+function loadScript()
+{
+ var script = document.createElement('script');
+ script.src = "data:text/plain;base64,dmFyIGpvaG5xdW90ZSA9ICJCZWNhdXNlIG9mIHRoZSBuYXR1cmUgb2YgTW9vcmUncyBsYXcsIGFueXRoaW5nIHRoYXQgYW4gZXh0cmVtZWx5IGNsZXZlciBncmFwaGljcyBwcm9ncmFtbWVyIGNhbiBkbyBhdCBvbmUgcG9pbnQgY2FuIGJlIHJlcGxpY2F0ZWQgYnkgYSBtZXJlbHkgY29tcGV0ZW50IHByb2dyYW1tZXIgc29tZSBudW1iZXIgb2YgeWVhcnMgbGF0ZXIuIjs=";
+ document.body.appendChild(script);
+}
+
+function test()
+{
+ InspectorTest.addConsoleSniffer(step1);
+ InspectorTest.evaluateInPage("loadScript()");
+
+ function step1()
+ {
+ InspectorTest.dumpConsoleMessages();
+ InspectorTest.completeTest();
+ }
+}
+</script>
+</head>
+<body onload="runTest()">
+<p>Tests that long data: URLs are correctly trimmed in MIME type console warnings.</p>
+<a href="https://bugs.webkit.org/show_bug.cgi?id=100083">Bug 100083</a>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698