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

Side by Side Diff: chrome/test/data/third_party/spaceport/js/util/timeout.js

Issue 10154006: Add test data for spaceport benchmark. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 define([ 'util/ensureCallback' ], function (ensureCallback) {
2 return function timeout(duration, fn, callback) {
3 callback = ensureCallback(callback);
4
5 var id = setTimeout(function () {
6 callback(new Error('Operation timed out'));
7 }, duration);
8
9 fn(function () {
10 clearTimeout(id);
11 callback.apply(this, arguments);
12 });
13 };
14 });
OLDNEW
« no previous file with comments | « chrome/test/data/third_party/spaceport/js/util/report.js ('k') | chrome/test/data/third_party/spaceport/package.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698