Index: third_party/WebKit/LayoutTests/inspector/tracing/timeline-node-reference.html |
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-node-reference.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-node-reference.html |
deleted file mode 100644 |
index df48149db5a33f77135d07f095e7fa61a553d0c0..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/inspector/tracing/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; |
- WebInspector.TimelineUIUtils.buildTraceEventDetails(record.traceEvent(), panel._model, new WebInspector.Linkifier(), true, 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.shadowRoot.lastChild.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> |