mirror of
https://github.com/tc39/test262.git
synced 2025-07-24 14:35:30 +02:00
harness test: timer.js
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
parent
c896312175
commit
7eef084cf5
18
test/harness/timer.js
Normal file
18
test/harness/timer.js
Normal file
@ -0,0 +1,18 @@
|
||||
// Copyright (c) 2017 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
Including timer.js will expose:
|
||||
|
||||
setTimeout()
|
||||
|
||||
includes: [timer.js,fnGlobalObject.js]
|
||||
---*/
|
||||
|
||||
var gO = fnGlobalObject();
|
||||
|
||||
assert(typeof setTimeout === "function");
|
||||
assert(typeof gO.setTimeout === "function");
|
||||
assert.sameValue(gO.setTimeout, setTimeout);
|
||||
|
||||
// TODO: assert semantics
|
Loading…
x
Reference in New Issue
Block a user