2
0

adddata.js 1.2 KB

12345678910111213141516171819202122232425
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. //
  6. // A copy of all the tests in "add.js" plus new Date object. Used by addcross.js
  7. //
  8. function foo() {}
  9. var all = [
  10. undefined, null,
  11. true, false, new Boolean(true), new Boolean(false),
  12. NaN, +0, -0, 0, 1, 10.0, 10.1,
  13. Number.MAX_VALUE, Number.MIN_VALUE, Number.NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY,
  14. new Number(NaN), new Number(+0), new Number( -0), new Number(0), new Number(1),
  15. new Number(10.0), new Number(10.1),
  16. new Number(Number.MAX_VALUE), new Number(Number.MIN_VALUE), new Number(Number.NaN),
  17. new Number(Number.POSITIVE_INFINITY), new Number(Number.NEGATIVE_INFINITY),
  18. "", "hello", "hel" + "lo",
  19. new String(""), new String("hello"), new String("he" + "llo"),
  20. new Object(), [1,2,3], new Object(), [1,2,3] , foo,
  21. new Date("2011-12-14T12:47:42.658Z")
  22. ];