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

Unified Diff: LayoutTests/inspector/timeline/timeline-node-reference.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-node-reference.html
diff --git a/LayoutTests/inspector/timeline/timeline-node-reference.html b/LayoutTests/inspector/timeline/timeline-node-reference.html
deleted file mode 100644
index ecb918113eca64ab495c5ca15e47220fab7e75ad..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/timeline/timeline-node-reference.html
+++ /dev/null
@@ -1,78 +0,0 @@
-<html>
-<head>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../http/tests/inspector/elements-test.js"></script>
-<script src="../../http/tests/inspector/timeline-test.js"></script>
-<style>
-.relayout-boundary {
- overflow: hidden;
- width: 100px;
- height: 100px;
-}
-</style>
-<script>
-
-function performActions()
-{
- var element = document.getElementById("invalidate1");
- element.style.marginTop = "10px";
- var unused = element.offsetHeight;
-}
-
-function test()
-{
- InspectorTest.evaluateInPage("var unused = document.body.offsetWidth;", function() {
- InspectorTest.evaluateWithTimeline("performActions()", onTimelineRecorded);
- });
-
- function clickValueLink(record, row)
- {
- var panel = WebInspector.panels.timeline;
- var helper = panel._uiUtils.generateDetailsContent(record, panel._model, new WebInspector.Linkifier(), onDetailsContentReady);
-
- function onDetailsContentReady(element)
- {
- var rows = element.querySelectorAll(".timeline-details-view-row");
- for (var i = 0; i < rows.length; ++i) {
- if (rows[i].firstChild.textContent.indexOf(row) !== -1) {
- rows[i].lastChild.firstChild.click();
- return;
- }
- }
- }
- }
-
- function onTimelineRecorded(records)
- {
- var layoutRecord = InspectorTest.findFirstTimelineRecord("Layout");
- WebInspector.notifications.addEventListener(WebInspector.NotificationService.Events.SelectedNodeChanged, onSelectedNodeChanged);
- clickValueLink(layoutRecord, "Layout root");
- }
-
- function onSelectedNodeChanged()
- {
- var node = WebInspector.panels.elements.selectedDOMNode();
- // We may first get an old selected node while switching to the Elements panel.
- if (node.nodeName() === "BODY")
- return;
- WebInspector.notifications.removeEventListener(WebInspector.NotificationService.Events.SelectedNodeChanged, onSelectedNodeChanged);
- InspectorTest.addResult("Layout root node id: " + node.getAttribute("id"));
- InspectorTest.completeTest();
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests the Timeline API instrumentation of a Layout event
-</p>
-<div id="boundary" class="relayout-boundary">
- <div>
- <div id="invalidate1"><div>text</div></div>
- </div>
-</div>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698