diff --git a/test/harness/timer.js b/test/harness/timer.js new file mode 100644 index 0000000000000000000000000000000000000000..911963dcf614eb34a5b9aa25ee696f790891e204 --- /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