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

Unified Diff: LayoutTests/inspector/timeline/timeline-timer-fired-from-eval-call-site.html

Issue 399043002: DevTools: switch Timeline frontend into buffered mode and remove the corresponding experiment. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: timeline-websocket-event rebaselined Created 6 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: LayoutTests/inspector/timeline/timeline-timer-fired-from-eval-call-site.html
diff --git a/LayoutTests/inspector/timeline/timeline-timer-fired-from-eval-call-site.html b/LayoutTests/inspector/timeline/timeline-timer-fired-from-eval-call-site.html
index 68b022bae6bfc0728fdfb99d7fbb1e2c73387044..9efdb175fa8ce6758f22deabf9beb8a4bb274144 100644
--- a/LayoutTests/inspector/timeline/timeline-timer-fired-from-eval-call-site.html
+++ b/LayoutTests/inspector/timeline/timeline-timer-fired-from-eval-call-site.html
@@ -4,13 +4,20 @@
<script src="../../http/tests/inspector/timeline-test.js"></script>
<script>
-function performActions()
+function performActions(callback)
{
+ window.callWhenDone = callback;
var content = "" +
- "var fn2 = function() {console.markTimeline(\"Script evaluated\");};\\n" +
- "var fn1 = function() {window.setTimeout(fn2, 1);};\\n" +
- "window.setTimeout(fn1, 1);\\n"
- content = "eval('" + content + "//# sourceURL=fromEval.js" + "');";
+ "var fn2 = function() {" +
+ " console.markTimeline(\"Script evaluated\");" +
+ " window.callWhenDone();" +
+ "};\\n" +
+ "var fn1 = function() {" +
+ " window.setTimeout(fn2, 1);" +
+ "};\\n" +
+ "window.setTimeout(fn1, 1);\\n" +
+ "//# sourceURL=fromEval.js";
+ content = "eval('" + content + "');";
var scriptElement = document.createElement('script');
var contentNode = document.createTextNode(content);
scriptElement.appendChild(contentNode);
@@ -20,13 +27,7 @@ function performActions()
function test()
{
- InspectorTest.startTimeline(start);
- InspectorTest.waitForRecordType("TimeStamp", finish);
-
- function start()
- {
- InspectorTest.evaluateInPage("performActions()");
- }
+ InspectorTest.invokeAsyncWithTimeline("performActions", finish);
function finish()
{
« no previous file with comments | « LayoutTests/inspector/timeline/timeline-timer.html ('k') | LayoutTests/inspector/timeline/timeline-window-filter.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698