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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/timeline/timeline-timer.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-timer.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/timeline/timeline-timer.html b/third_party/WebKit/LayoutTests/inspector-protocol/timeline/timeline-timer.html
deleted file mode 100644
index 78b64b58b938a7a5a73beaa024d06deb82bcf0e4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/timeline/timeline-timer.html
+++ /dev/null
@@ -1,57 +0,0 @@
-<html>
-<head>
-<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 callback;
- var promise = new Promise((fulfill) => callback = fulfill);
- var timerId = setTimeout(function()
- {
- evaluateInFrontend("InspectorTest.testFunctionTimerFired(" + timerId + ", " + timerId2 + ")");
- callback();
- }, 0);
-
- var timerId2 = setTimeout(function() { }, 0);
- clearTimeout(timerId2);
- return promise;
-}
-
-function test()
-{
- InspectorTest.invokeAsyncWithTracing("performActions", finish);
-
- var firedTimerId;
- var removedTimerId;
- InspectorTest.testFunctionTimerFired = function(timerId1, timerId2)
- {
- firedTimerId = timerId1;
- removedTimerId = timerId2;
- InspectorTest.log("SUCCESS: testFunctionTimerFired");
- }
-
- function finish(devtoolsEvents)
- {
- function hasTimerId(id, e) { return e.args.data.timerId === id}
-
- var installTimer1 = InspectorTest.findEvent("TimerInstall", "I", hasTimerId.bind(this, firedTimerId));
- var installTimer2 = InspectorTest.findEvent("TimerInstall", "I", hasTimerId.bind(this, removedTimerId));
-
- InspectorTest.log("TimerInstall has frame: " + !!installTimer1.args.data.frame);
- InspectorTest.log("TimerInstall frames match: " + (installTimer1.args.data.frame === installTimer2.args.data.frame));
-
- InspectorTest.findEvent("TimerRemove", "I", hasTimerId.bind(this, removedTimerId));
- InspectorTest.findEvent("TimerFire", "X", hasTimerId.bind(this, firedTimerId));
-
- 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