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

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: 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
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 3849dc1aae92efa6ec7e292a25445fb288fa515a..d2d2f7c4788d83dd32330ab1b1fc45a4a424f3b7 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() { },

Powered by Google App Engine
This is Rietveld 408576698