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

Side by Side Diff: services/js/modules/clock/monotonic_clock_unittests.js

Issue 703023004: Move the JS content handler et al from mojo/apps/js to mojo/services (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fixed DEPS gl build Created 6 years, 1 month 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
« no previous file with comments | « services/js/modules/clock/monotonic_clock.cc ('k') | services/js/modules/clock/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 define([ 5 define([
6 "console", 6 "console",
7 "gin/test/expect", 7 "gin/test/expect",
8 "monotonic_clock", 8 "services/js/modules/clock",
9 "timer", 9 "timer",
10 "mojo/apps/js/bindings/threading" 10 "mojo/public/js/threading"
11 ], function(console, expect, monotonicClock, timer, threading) { 11 ], function(console, expect, monotonicClock, timer, threading) {
12 var global = this; 12 var global = this;
13 var then = monotonicClock.seconds(); 13 var then = monotonicClock.seconds();
14 var t = timer.createOneShot(100, function() { 14 var t = timer.createOneShot(100, function() {
15 var now = monotonicClock.seconds(); 15 var now = monotonicClock.seconds();
16 expect(now).toBeGreaterThan(then); 16 expect(now).toBeGreaterThan(then);
17 global.result = "PASS"; 17 global.result = "PASS";
18 threading.quit(); 18 threading.quit();
19 }); 19 });
20 }); 20 });
OLDNEW
« no previous file with comments | « services/js/modules/clock/monotonic_clock.cc ('k') | services/js/modules/clock/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698