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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-node-reference.html

Issue 2145873002: [DevTools] Split inspector/tracing into subdirectories to speed things up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698