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

Unified Diff: LayoutTests/inspector/timeline/tracing/update-layer-tree.html

Issue 477153005: DevTools: adopt existing Timeline tests for tracing based Timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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: LayoutTests/inspector/timeline/tracing/update-layer-tree.html
diff --git a/LayoutTests/inspector/timeline/tracing/update-layer-tree.html b/LayoutTests/inspector/timeline/tracing/update-layer-tree.html
deleted file mode 100644
index bd9795e587636a1a45c439b22ef58697dc1e86d8..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/timeline/tracing/update-layer-tree.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<html>
-<head>
-<style>
-.layer {
- position: absolute;
- width: 20px;
- height: 20px;
- -webkit-transform: translateZ(10px);
-}
-</style>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/timeline-test.js"></script>
-<script src="../../tracing-test.js"></script>
-<script>
-
-function doActions(callback)
-{
- var layer = document.createElement("div");
- layer.classList.add("layer");
- document.getElementById("parent-layer").appendChild(layer);
-
- requestAnimationFrame(callback);
-}
-
-function test()
-{
- InspectorTest.invokeWithTracing("doActions", onTracingComplete);
- function onTracingComplete()
- {
- var events = InspectorTest.tracingTimelineModel.inspectedTargetEvents();
- for (var i = 0; i < events.length; ++i) {
- var event = events[i];
- if (events[i].name === WebInspector.TracingTimelineModel.RecordType.UpdateLayerTree) {
- InspectorTest.addResult("Got UpdateLayerTree event");
- break;
- }
- }
- InspectorTest.addResult("Done");
- InspectorTest.completeTest();
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests the instrumentation of UpdateLayerTree event
-</p>
-<div id="parent-layer"></div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698