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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js

Issue 1755123003: Timeline: quit using Progress, introduce TimelineLifecycleDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
index 6ba202c6e803bf4b00565d93e36e24f470028a01..fe55ddbce08b3bdcc8cc73400f9db71b9fb22111 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
@@ -796,7 +796,6 @@ InspectorTest.TempFileMock = function(dirPath, name)
{
this._chunks = [];
this._name = name;
- this._size = 0;
}
InspectorTest.TempFileMock.prototype = {
@@ -806,10 +805,11 @@ InspectorTest.TempFileMock.prototype = {
*/
write: function(chunks, callback)
{
+ var size = 0;
for (var i = 0; i < chunks.length; ++i)
- this._size += chunks[i].length;
+ size += chunks[i].length;
this._chunks.push.apply(this._chunks, chunks);
- setTimeout(callback.bind(this, this._size), 1);
+ setTimeout(callback.bind(this, size), 1);
},
finishWriting: function() { },
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698