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

Unified Diff: LayoutTests/inspector/timeline/timeline-load.html

Issue 709423002: DevTools: remove old Timeline front-end implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated LayoutTests/inspector/layers/layer-canvas-log.html Created 6 years, 1 month 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/inspector/timeline/timeline-load.html
diff --git a/LayoutTests/inspector/timeline/timeline-load.html b/LayoutTests/inspector/timeline/timeline-load.html
deleted file mode 100644
index 9ee1c07592bf4e05f65ebc105d043958652a3336..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/timeline/timeline-load.html
+++ /dev/null
@@ -1,95 +0,0 @@
-<html>
-<head>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../http/tests/inspector/timeline-test.js"></script>
-<script>
-
-function test()
-{
- function runTestWithDataAndCheck(input, expectedOutput)
- {
- var model = new WebInspector.TimelineModelImpl(WebInspector.timelineManager);
-
- function createFileReader(file, delegate)
- {
- return new InspectorTest.FakeFileReader(input, delegate, model.saveToFile.bind(model));
- }
-
- function createFileWriter()
- {
- return new InspectorTest.StringOutputStream(checkSaveData);
- }
-
- function checkSaveData(output)
- {
- var saveData = JSON.parse(output);
- saveData.shift(); // strip version info
- expectedOutput.shift();
- InspectorTest.assertEquals(JSON.stringify(expectedOutput), JSON.stringify(saveData), "saved data is not equal to restored");
- InspectorTest.addResult("passed");
- }
-
- InspectorTest.override(model, "_createFileReader", createFileReader);
- InspectorTest.override(model, "_createFileWriter", createFileWriter);
-
- model.loadFromFile({}, new WebInspector.Progress());
- }
-
- InspectorTest.runTestSuite([
- function testNormal(next)
- {
- var data = ["Version",
- {"startTime":1310749854316.8408,"data":{"requestId":43,"url":"http://www.webkit.org/","requestMethod":"GET"},"type":"ResourceSendRequest"},
- {"startTime":1310749855118.9329,"data":{"requestId":43,"statusCode":200,"mimeType":"text/html"},"children":[],"endTime":1310749855118.968,"type":"ResourceReceiveResponse"},
- {"startTime":1310749855136.245,"data":{"requestId":44,"url":"http://www.webkit.org/css/main.css","requestMethod":"GET"},"type":"ResourceSendRequest"},
- {"startTime":1310749855136.655,"data":{"requestId":45,"url":"http://www.webkit.org/css/green.css","requestMethod":"GET"},"type":"ResourceSendRequest"},
- {"startTime":1310749855137.023,"data":{"requestId":46,"url":"http://www.webkit.org/css/blue.css","requestMethod":"GET"},"type":"ResourceSendRequest"},
- {"startTime":1310749855137.342,"data":{"requestId":47,"url":"http://www.webkit.org/css/yellow.css","requestMethod":"GET"},"type":"ResourceSendRequest"},
- {"startTime":1310749855137.656,"data":{"requestId":48,"url":"http://www.webkit.org/css/pink.css","requestMethod":"GET"},"type":"ResourceSendRequest"},
- {"startTime":1310749855137.989,"data":{"requestId":49,"url":"http://www.webkit.org/css/purple.css","requestMethod":"GET"},"type":"ResourceSendRequest"},
- {"startTime":1310749855138.308,"data":{"requestId":50,"url":"http://www.webkit.org/css/gray.css","requestMethod":"GET"},"type":"ResourceSendRequest"}
- ];
- var input = JSON.stringify(data);
- runTestWithDataAndCheck(input, data);
- next();
- },
-
- function testIncompatible(next)
- {
- var data = ["Version",
- {"startTime":1310749854316.8408,"data":{"requestId":43,"url":"http://www.webkit.org/","requestMethod":"GET"},"t\"y}p}e\\":"UnknownRecordType"}
- ];
- var input = JSON.stringify(data);
- runTestWithDataAndCheck(input, data);
- next();
- },
-
- function testMalformed(next)
- {
- var data = ["Version"];
- // At least 1 record is parsed in first chunk.
- var input = '["Version",'
- +'{"startTime":1310749854316.8408,"data":{"requestId":43},"type":"UnknownRecordType"},'
- +'{"startTime":1310749854316.8508,"data":{"requestId":43},"type":"UnknownRecordType"},'
- +'{"startTime":1310749854316.8608,"data":{"requestId":43},"type":"UnknownRecordType"},'
- +'{"startTime":1310749854316.8708,"data":{"requestId":43_MALFORMED_JSON_},"type":"UnknownRecordType"}]';
- runTestWithDataAndCheck(input, data);
- next();
- }
- ]);
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests the Timeline save/load functionality.
-</p>
-
-<p>
-Also tests save/load of unknown (incompatible) record types. <a href="https://bugs.webkit.org/show_bug.cgi?id=91714">(Bug 91714)</a>
-</p>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698