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

Side by Side Diff: LayoutTests/http/tests/inspector/network/script-data-url.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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../inspector-test.js"></script>
4 <script src="../console-test.js"></script>
5 <script>
6 function loadScript()
7 {
8 var script = document.createElement('script');
9 script.src = "data:text/plain;base64,ZnVuY3Rpb24gZm9vKCl7DQpmdW5jdGlvbiBsb2F kU2NyaXB0KCkNCnsNCiAgICB2YXIgc2NyaXB0ID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnc2NyaXB 0Jyk7DQogICAgc2NyaXB0LnNyYyA9ICJkYXRhOnRleHQvcGxhaW47YmFzZTY0LFkyOXVjMjlzWlM1c2I yY29Ja1JsWTI5a1pXUXVJaWs9IjsNCiAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKHNjcmlwdCk 7DQp9DQoNCmZ1bmN0aW9uIHRlc3QoKQ0Kew0KICAgIEluc3BlY3RvclRlc3QuYWRkQ29uc29sZVNuaWZ mZXIoc3RlcDEpOw0KICAgIEluc3BlY3RvclRlc3QuZXZhbHVhdGVJblBhZ2UoImxvYWRTY3JpcHQoKSI pOw0KDQogICAgZnVuY3Rpb24gc3RlcDEoKQ0KICAgIHsNCiAgICAgICAgSW5zcGVjdG9yVGVzdC5kdW1 wQ29uc29sZU1lc3NhZ2VzKCk7DQogICAgICAgIEluc3BlY3RvclRlc3QuY29tcGxldGVUZXN0KCk7DQo gICAgfQ0KfQ0KfQ0KY29uc29sZS5sb2coIkRlY29kZWQuIik=";
10 document.body.appendChild(script);
11 }
12
13 function test()
14 {
15 InspectorTest.addConsoleSniffer(step1);
16 InspectorTest.evaluateInPage("loadScript()");
17
18 function step1()
19 {
20 InspectorTest.dumpConsoleMessages();
21 InspectorTest.completeTest();
22 }
23 }
24 </script>
25 </head>
26 <body onload="runTest()">
27 <p>Tests that long data: URLs are correctly trimmed.</p>
28 <a href="https://bugs.webkit.org/show_bug.cgi?id=100083">Bug 100083</a>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698