| Index: LayoutTests/http/tests/inspector/network/script-data-url.html
|
| diff --git a/LayoutTests/http/tests/inspector/network/script-data-url.html b/LayoutTests/http/tests/inspector/network/script-data-url.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bf4fccd6b17ec72576d5df514dc40c7be619d170
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/inspector/network/script-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,ZnVuY3Rpb24gZm9vKCl7DQpmdW5jdGlvbiBsb2FkU2NyaXB0KCkNCnsNCiAgICB2YXIgc2NyaXB0ID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnc2NyaXB0Jyk7DQogICAgc2NyaXB0LnNyYyA9ICJkYXRhOnRleHQvcGxhaW47YmFzZTY0LFkyOXVjMjlzWlM1c2IyY29Ja1JsWTI5a1pXUXVJaWs9IjsNCiAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKHNjcmlwdCk7DQp9DQoNCmZ1bmN0aW9uIHRlc3QoKQ0Kew0KICAgIEluc3BlY3RvclRlc3QuYWRkQ29uc29sZVNuaWZmZXIoc3RlcDEpOw0KICAgIEluc3BlY3RvclRlc3QuZXZhbHVhdGVJblBhZ2UoImxvYWRTY3JpcHQoKSIpOw0KDQogICAgZnVuY3Rpb24gc3RlcDEoKQ0KICAgIHsNCiAgICAgICAgSW5zcGVjdG9yVGVzdC5kdW1wQ29uc29sZU1lc3NhZ2VzKCk7DQogICAgICAgIEluc3BlY3RvclRlc3QuY29tcGxldGVUZXN0KCk7DQogICAgfQ0KfQ0KfQ0KY29uc29sZS5sb2coIkRlY29kZWQuIik=";
|
| + 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.</p>
|
| +<a href="https://bugs.webkit.org/show_bug.cgi?id=100083">Bug 100083</a>
|
| +</body>
|
| +</html>
|
|
|