blob: fcdafe30def7b15bb3b5e64783099a8005746793 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
define([
"gin/test/expect",
"services/js/modules/clock",
"timer",
"mojo/public/js/threading"
], function(expect, monotonicClock, timer, threading) {
var global = this;
var then = monotonicClock.seconds();
var t = timer.createOneShot(100, function() {
var now = monotonicClock.seconds();
expect(now).toBeGreaterThan(then);
global.result = "PASS";
threading.quit();
});
});