From 7eef084cf5aa6758742382f0b0338ff46b5d9837 Mon Sep 17 00:00:00 2001 From: Rick Waldron <waldron.rick@gmail.com> Date: Fri, 23 Jun 2017 11:55:41 -0400 Subject: [PATCH] harness test: timer.js Signed-off-by: Rick Waldron <waldron.rick@gmail.com> --- test/harness/timer.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/harness/timer.js diff --git a/test/harness/timer.js b/test/harness/timer.js new file mode 100644 index 0000000000..911963dcf6 --- /dev/null +++ b/test/harness/timer.js @@ -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 -- GitLab