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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/timeline/timeline-layout.html

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp Created 3 years, 6 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-protocol/timeline/timeline-layout.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/timeline/timeline-layout.html b/third_party/WebKit/LayoutTests/inspector-protocol/timeline/timeline-layout.html
deleted file mode 100644
index f998ee43a397147efe68370c9bbb508982641ea2..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/timeline/timeline-layout.html
+++ /dev/null
@@ -1,58 +0,0 @@
-<html>
-<head>
-<style>
-.my-class {
- min-width: 100px;
- background-color: red;
-}
-</style>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/tracing-test.js"></script>
-<script>
-
-function performActions()
-{
- var div = document.querySelector("#myDiv");
- div.classList.add("my-class");
- div.offsetWidth;
- return Promise.resolve();
-}
-
-function test()
-{
- InspectorTest.invokeAsyncWithTracing("performActions", finish);
-
- function finish(devtoolsEvents)
- {
- var schedRecalc = InspectorTest.findEvent("ScheduleStyleRecalculation", "I");
- var recalcBegin = InspectorTest.findEvent("UpdateLayoutTree", "B");
- var recalcEnd = InspectorTest.findEvent("UpdateLayoutTree", "E");
- InspectorTest.log("UpdateLayoutTree frames match: " + (schedRecalc.args.data.frame === recalcBegin.args.beginData.frame));
- InspectorTest.log("UpdateLayoutTree elementCount > 0: " + (recalcEnd.args.elementCount > 0));
-
- var invalidate = InspectorTest.findEvent("InvalidateLayout", "I");
- var layoutBegin = InspectorTest.findEvent("Layout", "B");
- var layoutEnd = InspectorTest.findEvent("Layout", "E");
-
- InspectorTest.log("InvalidateLayout frames match: " + (recalcBegin.args.beginData.frame === invalidate.args.data.frame));
-
- var beginData = layoutBegin.args.beginData;
- InspectorTest.log("Layout frames match: " + (invalidate.args.data.frame === beginData.frame));
- InspectorTest.log("dirtyObjects > 0: " + (beginData.dirtyObjects > 0));
- InspectorTest.log("totalObjects > 0: " + (beginData.totalObjects > 0));
-
- var endData = layoutEnd.args.endData;
- InspectorTest.log("has rootNode id: " + (endData.rootNode > 0));
- InspectorTest.log("has root quad: " + !!endData.root);
-
- InspectorTest.log("SUCCESS: found all expected events.");
- InspectorTest.completeTest();
- }
-
-}
-</script>
-</head>
-<body onLoad="runTest();">
-<div id="myDiv">DIV</div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698