OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 define([ |
| 6 "console", |
| 7 "gin/test/expect", |
| 8 "monotonic_clock", |
| 9 "timer", |
| 10 "mojo/apps/js/bindings/threading" |
| 11 ], function(console, expect, monotonicClock, timer, threading) { |
| 12 var global = this; |
| 13 var then = monotonicClock.seconds(); |
| 14 var t = timer.createOneShot(100, function() { |
| 15 var now = monotonicClock.seconds(); |
| 16 expect(now).toBeGreaterThan(then); |
| 17 global.result = "PASS"; |
| 18 threading.quit(); |
| 19 }); |
| 20 }); |
OLD | NEW |