Commit Graph

1203 Commits

Author SHA1 Message Date
Brian Terlson 509472bb74 Fix suspect formatting in S15.2.3.1_A3 2014-07-24 15:29:21 -07:00
smikes a8c49d8b47 sth: correct syntax error in new fn isAsyncTest 2014-07-22 10:41:32 -06:00
Brian Terlson 66aab6025d Fix comment formatting for S22.1.2.3_T1.js 2014-07-21 15:47:50 -07:00
Brian Terlson 66366d6961 Merge pull request #49 from smikes/faster-python-runner
test262.py: only include helper scripts when needed
2014-07-21 14:32:03 -07:00
Sam Mikes d4a3479a1e test262.py: only include helper scripts when needed
test262.py: only supply async helper scripts when test is async
sth.js: factor out function isAsyncTest()
timer.js: improve workaround for async tests when Promise is defined but setTimeout is noot

timer.js emulates setTimeout using Promise by doing a busy loop that checks
if `timeout` milliseconds have elapsed.  Modified check to (timeLeft > 0) instead
of (!timeLeft) to prevent infinite loop when check does not happen to run
at precise millisecond timeout expires.

Because test262.py did not support the $INCLUDE directive, some helper
scripts were added to every test -- notably testIntl, timer, and donePrintHandle
Now that $INCLUDE is supported, these can be dropped, speeding overall test run time
2014-07-21 15:15:04 +01:00
Hank Yates cae283b563 Adding Array.prototype#fill tests 2014-07-18 15:17:33 -07:00
Brian Terlson 96c6efe0ef Merge pull request #43 from smikes/initial-Promise-tests
Initial promise tests
2014-07-18 11:22:48 -07:00
Brian Terlson 821e06e3f1 Merge pull request #44 from smikes/fix-packager
packager: make packager runnable
2014-07-18 11:21:52 -07:00
smikes 7032af4db8 packager: make packager runnable
packager.py cannot run due to syntax errors in a few script files

packagerConfig: use git instead of hg
test262: use pop instead of delete to avoid throw if property missing
S22.1.2.1_T*: fix docString header comment: s/b /**
S22.1.2.1_T3: fix docString header comment: s/b /**, fix end of docstring * / => */
2014-07-18 08:53:29 +01:00
Sam Mikes 7e07cc138d async,promises: initial tests of Promises
doneprintHandle.js: make $DONE accept any falsy argument as meaning 'pass'
PromiseHelper.js: checkSequence: new helper fn for async tests
.gitignore: port .hgignore to .gitignore syntax
test262.py: support $INCLUDE directive in python test runner

S25.4.4.1*: tests to cover Section 25.4.4.1, Promise.all( iterable )
A1.1: Promise.all is callable
A1.2: Promise.all expects 1 argument
A2.1: Promise.all([]) is a Promise
A2.2: Promise.all([]) is resolved immediately
A2.3: Promise.all([]) is resolved with a new empty array
A3.1: Promise.all expects an iterable argument
2014-07-18 05:37:08 +01:00
Matthew Meyers c451a33299 Adds tests for Array.prototype.find 2014-07-17 11:24:50 -07:00
ryanmurakami eb0ff48938 first batch of ES6 tests 2014-07-16 17:31:37 -07:00
Hank Yates 9244107ebf Adding Array#of tests 2014-07-16 17:03:52 -07:00
Hank Yates 7edb891fff Adding test for Array.from 2014-07-16 13:34:37 -07:00
Thomas Dahlstrom 2f5ec53aad Bug 596 - Coverage: 15.4.4.11 - identical elements and array holes 2014-07-16 12:56:46 -07:00
Brian Terlson 50696f69f6 Merge pull request #34 from niksurya/master
Adding Support for Async Tests
2014-07-16 12:10:56 -07:00
NikSurya 9aa6b917fa Adding Support for Async Tests 2014-07-15 13:47:59 -07:00
Brian Terlson b0c6fb0272 Merge pull request #2 from bterlson/localeCompare-fix
15.5.4.9_CE should check for locale-sensitive comparison
2014-07-10 14:59:57 -07:00
Brian Terlson 916a08bb9a Merge pull request #19 from JaimeLynSchatz/JaimeLynSchatz/fixBugz1533
change test 15.3.5.4_2-89 to call bound function before returning (Fixes bugzilla 1533)
2014-07-10 14:53:34 -07:00
Brian Terlson ee409f9d7d Merge pull request #14 from JaimeLynSchatz/JaimeLynSchatz/fixBugz1561
fix error msgs in test S12.6.1_A1 from Bugzilla issue 1561
2014-07-10 14:32:37 -07:00
Brian Terlson 5920e4e9c9 Merge pull request #6 from JaimeLynSchatz/JaimeLynSchatz/fixBugz1159
change assert to not assume a sorted list of arguments indices (Fixes bugzilla 1159)
2014-07-10 14:25:42 -07:00
Brian Terlson 019a62a863 Merge pull request #7 from JaimeLynSchatz/JaimeLynSchatz/fixBugz1552
fix point of view typos from Bugzilla 1552
2014-07-10 13:45:37 -07:00
Brian Terlson 4f15bf990b Merge pull request #1 from JaimeLynSchatz/JaimeLynSchatz/typofix
fix typo in 10.5 (fixes Bugzilla 1795)
2014-07-10 13:40:27 -07:00
Brian Terlson cb8b373444 Merge pull request #26 from muratsu/intl402-alert
Remove the alert call from test file
2014-07-10 13:39:14 -07:00
José Roberto Vidal 7b6ef7ba88 Fix Bugzilla 1450 2014-02-11 19:56:32 -05:00
Murat Sutunc 7697770a4c removed alert call from test file 2014-01-30 16:00:57 -08:00
JaimeLynSchatz 6b47f8c585 change test 15.3.5.4_2-89 to call bound function before returning for Bugzilla issue 1533 2014-01-26 17:08:20 -08:00
JaimeLynSchatz f9afc0c847 fix error msgs in test S12.6.1_A1 from Bugzilla issue 1561 2014-01-26 16:21:28 -08:00
JaimeLynSchatz a5fda120de fix point of view typos from Bugzilla 1552 2014-01-26 14:55:44 -08:00
JaimeLynSchatz d7446f811a change assert to not assume a sorted list of arguments indices for Bugzilla 1159 2014-01-26 14:25:38 -08:00
Brian Terlson 47a92dbb24 15.5.4.9_CE should check for locale-sensitive comparison 2014-01-26 13:24:35 -08:00
JaimeLynSchatz 239c4b721a fix typo in 10.5 from Bugzilla 2014-01-26 11:36:47 -08:00
Brent Baker ada9da5aa9 Bug 1128: use Date.prototype.getFullYear() in S15.2.2.1_A2_T5
Bug 1131: use String.prototype.charAt() in 15.12.3-11-26

Both of these changes were accidentaly dropped when I regenerated patches for these bugs. I have grepped the testsuite to ensure that the annexB functions only appear in the annexB section of the testsuite.

NOTE: Also regenerated the website based on this change. (Still waiting for permission to actually update the live website)
2013-06-13 10:07:45 -04:00
Prashanth Srinivasan 87605ba3b5 Bug 1472: Adding JUnit Compatible XML and Logfile support for Python test runner 2013-06-10 11:51:24 -04:00
Brent Baker 91bb82fb7e Bug 1548: Update results handling for Annex B section (r+bterlson) 2013-06-07 07:05:37 -04:00
Brent Baker 0d01ab1c7f Bug 1189: use "===" instead of "=" for S13.2_A4_T1 and T2 2013-06-07 06:57:45 -04:00
Brent Baker 592bf451b2 Bug 1131: Move String.prototype.substr into annexB 2013-06-05 08:00:44 -04:00
Brent Baker dc243639fc Bug 1129: Move RegExp.prototype.compile into annexB 2013-06-06 08:07:36 -04:00
Brent Baker 23f10fea63 Bug 1129: Move Date.prototype.toGMTString into annexB 2013-06-06 07:48:30 -04:00
Brent Baker fb850ad1e0 Bug 1128: Move getYear() and setYear() into annexB 2013-06-06 07:44:11 -04:00
Brent Baker 66563223a5 Bug 1125: Move escape and unescape into "annexB" 2013-06-06 07:36:51 -04:00
Trevor Baker 5167f080fd bug 638: mid-file BOM
A few files had BOM mid-file, which is allowed but not relevant to the tests.
tests pass with spidermonkey, v8 and jsc.
2013-05-07 15:31:41 -04:00
Norbert Lindenberg fbba29fb70 Added test data for proper rounding in NumberFormat.format. 2013-04-29 17:35:48 -07:00
Norbert Lindenberg 238ff38de6 Updated minor unit value for Uganda Shilling to 0 per ISO 4217 Amendment Number 155. 2013-04-15 20:05:50 -07:00
Norbert Lindenberg 96321f30c9 New tests and test fixes for ECMAScript Internationalization API.
Updated copyright notice for 2013.
2013-03-24 23:48:59 -07:00
Norbert Lindenberg a2380a4257 Bug 1245 - Add test for missing argument to String.prototype.localeCompare 2013-02-07 20:55:25 -08:00
Norbert Lindenberg 46359091c7 Updated test402 main page to reflect that ECMA-402 is now an approved standard.
Fixed a property access in 6.4_c so that the error message shows the correct expected value.
2012-12-17 23:49:06 -08:00
Norbert Lindenberg f169d16273 Added tests to verify that constructors in Internationalization API can be called with non-objects as this values. 2012-11-05 22:48:52 +00:00
Norbert Lindenberg 8f6a50843a Bug 693: Remove "kk"/normalization property from Collator 2012-10-09 22:19:30 -07:00
Norbert Lindenberg ffe73305c6 New and improved tests for ECMAScript Internationalization API.
- Added test for proleptic Gregorian calendar with no year 0.
- Spelled 𠮷野家 correctly with supplementary characters.
- Fixed default value for useGrouping.
2012-10-04 23:19:33 -07:00
Bill Ticehurst 9d19c87e3e Bug 610: Handle supplementary characters. 2012-08-09 15:02:49 -07:00
Norbert Lindenberg 75fbd71ee0 Updated tests for ECMAScript Internationalization API spec changes; made small enhancements.
- Updated DateTimeFormat tests for new handling of hour12 options property.
- Added a few invalid language tags to test of IsStructurallyValidLanguageTag.
- Added user-defined language tag to test of CanonicalizeLanguageTag.
- Added test for the Intl property of the global object.
2012-09-10 11:53:56 -07:00
Norbert Lindenberg bcf9c18061 Added test to verify Unicode canonical equivalence in String.prototype.localeCompare. 2012-09-10 10:46:44 -07:00
Norbert Lindenberg d71ffa59d5 Added new tests for chapters 10 to 13 of the ECMAScript Internationalization API Specification. 2012-08-26 20:50:24 -07:00
Norbert Lindenberg 1af2425075 Added new tests for chapters 6 and 9 of ECMAScript Internationalization API Specification.
- Removed a few old test cases that were redundant with new, more comprehensive ones.
- Added testIntl.js as standard include for all console tests in test262.py – see related bug 574.
- Added .jshintrc file for settings for the JSHint tool.
2012-08-26 20:49:25 -07:00
Norbert Lindenberg 8cad7d03ce Added tests for requirements imposed on the built-in objects of the ECMAScript Internationalization API Specification by the introduction of chapter 15 of the ECMAScript Language Specification.
- Removed some old tests that were redundant with the new tests.
- Added testBuiltInObject.js as standard include for all console tests in test262.py – see related bug 574.
2012-08-26 20:48:49 -07:00
Norbert Lindenberg e77b0e06cf Moved Google tests from ch13 to ch12. 2012-08-22 18:23:26 -07:00
Norbert Lindenberg 043f19d25e Moved Google tests from ch12 to ch11. 2012-08-22 18:16:59 -07:00
Norbert Lindenberg ea81812a40 Moved Google tests from ch11 to ch10. 2012-08-22 18:06:31 -07:00
Norbert Lindenberg c3111850e3 Updated existing tests for June 2012 spec changes; removed LocaleList tests; fixed minor issues.
- Removed LocaleList tests; updated other tests so they don't depend on LocaleList.
- Updated tests so they no longer assume that the prototype object of a constructor is an instance of that constructor.
- Updated tests so that jshint is happy.
- Removed @path attributes from test files; updated comment in packager.py explaining why they're unnecessary.
- Removed "use strict" statements, which interfere with strict/non-strict testing.
- Removed testcase functions, which are unnecessary.
2012-08-22 17:53:26 -07:00
Norbert Lindenberg 9f4a513496 Merged changes. 2012-08-22 16:12:54 -07:00
Bill Ticehurst 19634b74f6 Update float value tests 2012-08-08 15:16:36 -07:00
Norbert Lindenberg 9a4b4011f8 Got test402 web site into usable shape. Unified headers of test262/402 sites.
- Added table of contents for ECMA-402.
- Added ability to load the right table of contents into results display.
- Added meaningful text to test402 web page.
- Updated test262 web pages for 5.1 edition of ECMA-262.
- Unified headers of test262/402 web pages to ECMAScript <area> <test>.
- Replaced text logos with styled text.
- Decapitalized some text; fixed a typo; expanded an abbreviation.
- Fixed a few issues found by W3 HTML validator.
2012-07-18 12:32:54 -07:00
t-adamre 385b4f7163 Add capability to run chapters individually from the website 2012-06-12 14:54:30 -07:00
Bill Ticehurst 9c48816277 Plugged a global thisarg hole with a new test and fixed an operator 2012-05-18 08:57:21 -07:00
Bill Ticehurst f117cde741 Adding more coverage for 10.4.3 based on feedback in bug https://bugs.ecmascript.org/show_bug.cgi?id=333 2012-05-17 10:30:10 -07:00
Bill Ticehurst 0dca29de4a Adding more tests to cover undefined being non-writable (see https://bugs.ecmascript.org/show_bug.cgi?id=223 ) 2012-05-16 18:08:23 -07:00
Bill Ticehurst 8646791add Removing RegEx test-case related to https://bugs.ecmascript.org/show_bug.cgi?id=326 until open issue is resolved. 2012-05-11 22:45:26 -07:00
Nebojsa Ciric cc9f5eab48 Initial intl402 checkin. 2012-04-16 13:23:13 -07:00
Bill Ticehurst 1087776d49 This is my first commit 2012-03-29 00:03:52 -07:00
David Fugate 87be1bf6ec https://bugs.ecmascript.org/show_bug.cgi?id=65 fixed. 2012-03-28 16:05:03 -07:00
David Fugate 2a112abbd5 Renamed a couple of files. 2012-03-27 13:01:22 -07:00
David Fugate 44234c8954 https://bugs.ecmascript.org/show_bug.cgi?id=289 is fixed. 2012-03-27 09:34:21 -07:00
David Fugate 898c63ab18 Fixed https://bugs.ecmascript.org/show_bug.cgi?id=288. 2012-03-27 09:27:57 -07:00
David Fugate d6634f8e10 Fixed https://bugs.ecmascript.org/show_bug.cgi?id=293. ConstructDate cannot be
salvaged (e.g., need locale info to properly predict whether we're subject to
DST).
2012-03-26 13:50:38 -07:00
David Fugate d67ef0cb5e Added whitespace (please ignore). 2012-03-16 10:27:59 -07:00
David Fugate 0474c73ea9 Fixed a typo. 2012-03-15 08:54:09 -07:00
David Fugate 4cebb176cf More work on https://bugs.ecmascript.org/show_bug.cgi?id=294. 2012-03-14 15:42:02 -07:00
David Fugate 7201416d53 https://bugs.ecmascript.org/show_bug.cgi?id=240 fixed (removed a BOM and
recoded a file to ANSI).
2012-03-14 14:22:41 -07:00
David Fugate 4ae147241a https://bugs.ecmascript.org/show_bug.cgi?id=294 partially fixed. Still
need to move some tests over to best practices.
2012-03-09 11:54:51 -08:00
David Fugate 448262e29e More @onlyStrict tests should have been @noStrict. 2012-03-08 12:04:15 -08:00
David Fugate 5882a21142 https://bugs.ecmascript.org/show_bug.cgi?id=287 is fixed (completely?). 2012-03-06 08:51:41 -08:00
David Fugate 0612ad7bb3 Added a LICENSE file to the root of the enlistment.
All Microsoft-contributed *.js and *.py sources now have Ecma's copyright header.
2012-02-29 14:23:47 -08:00
David Fugate e45ca2e0f3 https://bugs.ecmascript.org/show_bug.cgi?id=266 and https://bugs.ecmascript.org/show_bug.cgi?id=270 resolved. 2012-02-27 16:45:56 -08:00
David Fugate 4fb5071cd4 Migrated latest external\contributions\Microsoft\ietcLatest changes over to test\suite\*. 2012-02-27 15:46:23 -08:00
David Fugate c64d7b5758 https://bugs.ecmascript.org/show_bug.cgi?id=274
Fixed.

Re-gen'ed the website.
2012-02-24 15:40:42 -08:00
David Fugate d9e409ac1b https://bugs.ecmascript.org/show_bug.cgi?id=269
Extension clause permits function declarations more or less anywhere.
Moved four such negative test cases to best practices directory.
2012-02-24 14:28:50 -08:00
David Fugate 35af99abe1 https://bugs.ecmascript.org/show_bug.cgi?id=276 fixed. 2012-02-24 10:50:14 -08:00
David Fugate e0d156d38c Implemented the following work items:
- https://bugs.ecmascript.org/show_bug.cgi?id=44
- https://bugs.ecmascript.org/show_bug.cgi?id=45
2012-02-22 11:53:29 -08:00
David Fugate 394e82c6c2 Fixed more license headers. 2012-02-08 15:33:30 -08:00
David Fugate e0cf97e344 A conversion tool ripped Microsoft license headers out of globally scoped tests. Fixed 2012-02-07 09:34:36 -08:00
David Fugate fa9e9d3203 Fixed test case paths. 2012-02-03 15:21:45 -08:00
David Fugate 2f093b7988 No test262 test cases can be found under test/suite/chN/*.js for
all 'N'.  If such files existed, they've been moved to test/suite/chN/N.0/
now.
2012-02-03 13:36:07 -08:00
David Fugate 279825ea44 Added experimental test402 support (JS internationalization standard). 2012-01-25 14:04:40 -08:00
David Fugate 98a0b9e10e S8.5_A13_T1 is implementation dependent (cannot pass on current ARM
architectures), but worth keeping around for the coverage it provides.
Documented that this is expected to fail on ARM.
2012-01-18 12:16:09 -08:00
David Fugate e6f9015301 Last two invalid test cases have been fixed. 2012-01-16 14:06:17 -08:00
David Fugate 4d241e4bec S7.8.5_A3.1_T7 through S7.8.5_A3.1_T9 were invalid as written. The only way to specify unicode flags
to literal regexp patterns is through eval and similar mechanisms (e.g., Function constructor).  Fixed.

All but two of the remaining disabled tests in excludelist.xml were disabled because the tests polluted
the global JS environment, not because the tests themselves were invalid.  This is no longer an issue as
of the latest test262 harness (actually it wasn't an issue about a year ago either).  Re-enabled.
2012-01-16 12:51:55 -08:00
David Fugate b9160ef102 Mark Miller removed this invalid test in Sputnik (see http://code.google.com/p/sputniktests/source/detail?r=93), and
I'm propagating that change to test262 now.
2012-01-16 11:27:31 -08:00
David Fugate a180d5f371 https://bugs.ecmascript.org/show_bug.cgi?id=61 is fixed. 2012-01-16 11:17:05 -08:00
David Fugate 9e00383b5f Two more issues called out in excludelist.xml are gone. 2012-01-13 15:48:35 -08:00
David Fugate 42737015f4 https://bugs.ecmascript.org/show_bug.cgi?id=75 2012-01-13 15:15:29 -08:00
David Fugate 9dbc4e9821 Test harness changes last Fall enabled execution of this===theGlobalObject Sputnik tests again.
Also, two of this weren't actually this-related.  Fixed their separate issues.
2012-01-13 14:54:45 -08:00
David Fugate 7e7ebe85f2 https://bugs.ecmascript.org/show_bug.cgi?id=60 2012-01-13 13:31:45 -08:00
David Fugate e394b50364 Rest of https://bugs.ecmascript.org/show_bug.cgi?id=23 fix. 2012-01-13 11:33:05 -08:00
David Fugate ab5f9c379f https://bugs.ecmascript.org/show_bug.cgi?id=23 resolved. 2012-01-13 11:31:20 -08:00
David Fugate d8add6e8c6 https://bugs.ecmascript.org/show_bug.cgi?id=14 fixed. 2012-01-13 09:51:10 -08:00
David Fugate fb301f6f8e https://bugs.ecmascript.org/show_bug.cgi?id=7 2012-01-13 09:42:02 -08:00
David Fugate 30b01f46c8 https://bugs.ecmascript.org/show_bug.cgi?id=80 resolved. 2012-01-13 09:16:55 -08:00
David Fugate e28b10e5a6 https://bugs.ecmascript.org/show_bug.cgi?id=218 resolved. 2012-01-12 16:39:35 -08:00
David Fugate 1ba74c5d0d https://bugs.ecmascript.org/show_bug.cgi?id=215 resolved. 2012-01-12 10:15:26 -08:00
David Fugate 9df276c969 https://bugs.ecmascript.org/show_bug.cgi?id=179
S11.1.1_A2.js is invalid and there's no way to make it valid.  Removing.
2012-01-12 09:49:58 -08:00
David Fugate b359da88be No way to make S15.5.4.8_A1_T11.js (https://bugs.ecmascript.org/show_bug.cgi?id=30)
valid.  Removing it as similar coverage already exists.
2012-01-12 09:43:20 -08:00
David Fugate 5254b88b29 https://bugs.ecmascript.org/show_bug.cgi?id=26 is fixed. 2012-01-05 09:17:14 -08:00
David Fugate 252edbac3e Merge. 2011-11-28 11:09:10 -08:00
Mark Miller 8642ca34b5 Opera crash fixed as of 12alpha build 1155, so this test no longer
needs to be excluded.
2011-11-18 09:58:54 -08:00
David Fugate fd38135510 Merge. 2011-11-11 11:58:16 -08:00
David Fugate 5df3134fac Fixed https://bugs.ecmascript.org/show_bug.cgi?id=207. 2011-11-11 11:40:05 -08:00
Mark Miller 5a935ed229 Revise opera crash exclusions to exclude only the test that causes the crash 2011-11-09 12:02:28 -08:00
David Fugate 4e74861ccb Updated Microsoft's test262 contributions reflecting the IE10 PPB4 update to IE Test Center.
77 new (mostly) strict mode tests plus the removal of one invalid test case.

Sputnik and IE Test Center tests now live side-by-side in ch* directories under test/suite.
2011-11-04 12:46:23 -07:00
Mark Miller b109056711 Merged 2011-10-04 07:27:01 +02:00
Mark Miller debc8d8b67 Built-in functions should not have non-deletable, non-poisoned
"caller" and "arguments" properties.
2011-10-04 06:52:13 +02:00
David Fugate b66316de69 Re-gen'ed Sputnik test case path metadata. 2011-10-03 13:04:52 -07:00
David Fugate 69a1080bb6 Renamed Sputnik directories. 2011-10-03 12:20:26 -07:00
Mark Miller 68e437e708 Fixing malformed test cases 2011-09-30 13:55:26 -04:00
Mark Miller 13b63c5486 test262 console runner working! 2011-09-30 08:24:38 -04:00
Mark Miller aad373e620 Some more test improvements 2011-09-30 08:22:45 -04:00
Mark Miller 64db10aa2d Just reformatting to 80 columns 2011-09-30 03:59:50 -04:00
David Fugate a8625046d2 Re-enabled 12 tests. 2011-09-27 12:52:17 -07:00
David Fugate ffa85c2584 Moved all test helper functions into sta.js; removed sputnikLib.js.
Laid down the groundwork for a console-based test runner.
2011-09-26 16:12:46 -07:00
David Fugate 352d86b8ed Support not-NotEarlyError as well. 2011-09-25 17:05:32 -07:00
David Fugate 515ed58d60 Fixed bug in generated IETC test cases regarding NotEarlyError. 2011-09-25 16:25:20 -07:00
David Fugate 209657430d Re-gen'ed website. 2011-09-25 16:21:18 -07:00
Mark Miller 4632b7bf47 Removals that would have been propagated from my last conversion if
I'd used "hg addremove"
2011-09-25 15:59:46 -07:00
Mark Miller e4aebe55c7 Regenerated from last bug fixed to pre-converted sources. 2011-09-25 15:11:03 -07:00
Mark Miller 9e39b942b5 Moved test/suite/converted to its new home, as our new canonical
source starting NOW, to test/suite.
2011-09-25 14:44:28 -07:00
Mark Miller 5f94652df2 Moving sputnik/Conformance to new home at
external/contributions/Google/sputnik_conformance_modified.  This move
is not consistent by itself. Also need upcoming commit to convert.js.
2011-09-25 12:53:12 -07:00
David Fugate 1e373168c6 Merge. 2011-09-25 12:25:14 -07:00
Mark Miller f2b47a7ff3 Fixes https://bugs.ecmascript.org/show_bug.cgi?id=127 2011-09-25 12:22:47 -07:00
David Fugate 46ecc39d92 Removed ietestcenter from test/suite/*. 2011-09-25 12:11:19 -07:00
Mark Miller d1f98e1059 Merged 2011-09-25 12:09:18 -07:00
Mark Miller 83430d0123 Removing elements of test/suite/sputnik that are not used to test
conformance. The top-level *.js files have already been duplicated in
test/harness. The directories are for testing non-standard behaviors,
and these remain under
external/contributions/Google/sputniktests/tests/
2011-09-25 12:08:25 -07:00
David Fugate d8d5a15271 Merge. 2011-09-25 12:04:15 -07:00
David Fugate 71b447b8b4 Removed sputnik_converted. We now take what's under external/contributions/Google/* directly. 2011-09-25 12:03:31 -07:00
Mark Miller 0317028e15 Fixes https://bugs.ecmascript.org/show_bug.cgi?id=13 2011-09-25 11:59:31 -07:00
Mark Miller b9bd140cef Merged 2011-09-25 11:50:12 -07:00
Mark Miller 58740a7088 https://bugs.ecmascript.org/show_bug.cgi?id=22 2011-09-25 11:48:37 -07:00
David Fugate 2470de7cd8 Merge. 2011-09-25 11:41:49 -07:00
Mark Miller 72a64280ae Fixes https://bugs.ecmascript.org/show_bug.cgi?id=133 2011-09-25 11:38:13 -07:00
Mark Miller 96682a8372 Fixes https://bugs.ecmascript.org/show_bug.cgi?id=12
Hg: Enter commit message.  Lines beginning with 'HG:' are removed.
2011-09-25 11:33:41 -07:00
Mark Miller 45f7cee019 Fixes https://bugs.ecmascript.org/show_bug.cgi?id=15 2011-09-25 11:21:54 -07:00
Mark Miller 8c642b6172 Fixes https://bugs.ecmascript.org/show_bug.cgi?id=58 2011-09-25 11:11:11 -07:00
Mark Miller 8a52d9cc33 Fixes https://bugs.ecmascript.org/show_bug.cgi?id=128 2011-09-25 10:50:40 -07:00
David Fugate a8e88a93dd Merge. 2011-09-25 10:48:00 -07:00
David Fugate d5bf95c628 Made exception type checking looser: window.onerror isn't spec'ed to give us the
exact error type, but we should get the '.message' property.
2011-09-25 10:47:34 -07:00
Mark Miller e691523b51 Fixing https://bugs.ecmascript.org/show_bug.cgi?id=59 2011-09-25 10:43:20 -07:00
Mark Miller eea2f45421 Tests for spec violation generically by enumerating properties. 2011-09-25 10:40:20 -07:00
David Fugate cf22b0c733 Removed .DS_Store file. 2011-09-25 10:32:11 -07:00
Mark Miller aa67d8e5ac Regenerated 2011-09-25 08:38:17 -07:00
Mark Miller 9d3bab7052 Fixes https://bugs.ecmascript.org/show_bug.cgi?id=25
Hg: Enter commit message.  Lines beginning with 'HG:' are removed.
2011-09-24 19:44:20 -07:00
Mark Miller d378bd6ddd Fixes https://bugs.ecmascript.org/show_bug.cgi?id=24 2011-09-24 19:37:56 -07:00
Mark Miller 7cd21e6f24 Fixes https://bugs.ecmascript.org/show_bug.cgi?id=120 2011-09-24 19:31:03 -07:00
Mark Miller a277262e89 Regenerated 2011-09-24 18:15:40 -07:00
David Fugate 20d575423d Strict property metadata fixes. 2011-09-24 17:43:13 -07:00
Mark Miller 9025e2580b Merged 2011-09-24 17:38:16 -07:00
Mark Miller 46ae3ee2ac Fixes https://bugs.ecmascript.org/show_bug.cgi?id=117 Also removed
from excludes.xml tests that were fixed and removed either by this
commit or by earlier commits today
2011-09-24 17:37:08 -07:00
David Fugate 1e314c6e13 Merge. 2011-09-24 17:20:55 -07:00
David Fugate 305a2bb676 Fixed some strict metadata. 2011-09-24 17:19:43 -07:00
Mark Miller db75ad6977 Fixed https://bugs.ecmascript.org/show_bug.cgi?id=29 2011-09-24 16:56:56 -07:00
Mark Miller 23e9693702 Fixes https://bugs.ecmascript.org/show_bug.cgi?id=28 2011-09-24 16:52:11 -07:00
Mark Miller 318cebf831 Fixes https://bugs.ecmascript.org/show_bug.cgi?id=31 2011-09-24 16:47:27 -07:00
Mark Miller dfa7024e15 Merged 2011-09-24 16:42:59 -07:00
Mark Miller 6adc4f7da9 Fixes bug https://bugs.ecmascript.org/show_bug.cgi?id=27 Also changed
an inappropriate @strict_mode_negative to @noStrict. There are more
(many more?) of these to fix
2011-09-24 16:42:04 -07:00
David Fugate 2bf9e7e2a0 Merge. 2011-09-24 16:36:50 -07:00
David Fugate 2b0122ef82 All tests are globally scoped tests - Part I. 2011-09-24 16:35:45 -07:00
Mark Miller 5c91ef1cb8 Merged 2011-09-24 16:16:50 -07:00
Mark Miller bb29020ab2 Closing out https://bugs.ecmascript.org/show_bug.cgi?id=18 Some of
these tests were valid tests of best practices, but not of the
normative spec. We moved these to a new bestPractices directory and
added a new not-yet-operational @bestPractices property.
2011-09-24 16:08:47 -07:00
David Fugate ab1142e498 Merge. 2011-09-24 11:48:21 -07:00
David Fugate 5be3b44a3d Removed all traces of test pre-req requirements.
Generate the 'id' property from the 'path' property.
2011-09-24 11:46:26 -07:00
Mark Miller 479a396ffd Regenerated 2011-09-24 11:13:49 -07:00
Mark Miller 66abdf4354 Changed strictOnly to onlyStrict 2011-09-24 11:13:02 -07:00
Mark Miller 89ab56beb7 corresponding generated 2011-09-24 08:25:22 -07:00
Mark Miller 9c33379225 Added all tests added to repairES5.js since the last time I contributed SES-relevant tests to test262. 2011-09-23 23:50:15 -07:00
Mark Miller db516d2a64 Regenerated w fixed paths and ietc optimizations turned off 2011-09-23 19:33:08 -07:00
Mark Miller c79fbddc94 Just pure directory renaming 2011-09-23 18:09:41 -07:00
Mark Miller 176f5f8542 Generated adjusted tests 2011-09-23 17:42:36 -07:00
David Fugate 660a2a08eb Merge. 2011-09-23 16:28:58 -07:00
David Fugate 4fcd9a836d https://bugs.ecmascript.org/show_bug.cgi?id=34. Fixed 2011-09-23 16:27:46 -07:00
Mark Miller c590475e5d This time, really merged. Last one was outstanding changes preventing a merge. 2011-09-23 16:22:42 -07:00
Mark Miller 23e84ad9a1 Automatically generated result of converting to the new agreed
(between David Fugate and I) canonical test262 test format
2011-09-23 16:16:28 -07:00
David Fugate 382f5c17e6 https://bugs.ecmascript.org/show_bug.cgi?id=5. Fixed 2011-09-23 15:10:53 -07:00
David Fugate 124d0c7848 Merge. 2011-09-22 12:56:52 -07:00
David Fugate 1b3e926837 Think I've come up with a fix for https://bugs.ecmascript.org/show_bug.cgi?id=11 (Date_library.js):
- juneDate and decemberDate were both one month off.  Fixed
- LocalTZA wasn't actually LocalTZA as defined in ES5.  If we were in DST when
  this was created, LocalTZA was off by one hour.  Fixed
- GetSundayInMonth was completely busted (i.e., arithmetic operations on the 'count'
  param which happens to be a string).  Fixed(?)
- DaylightSzavingTA was defined incorrectly.  It assumed the local time zone adjustment
  hadn't been accounted for.  This wasn't how UTC was calling it.  Fixed(?)
2011-09-22 11:58:06 -07:00
David Fugate ec5dce172d From the 'Run' tab, there's now a clickable 'Error' link showing precisely what
failed.
2011-09-22 11:43:39 -07:00
David Fugate 0937e10a03 Improved global scope 'missing error' error message. 2011-09-22 11:41:30 -07:00
David Fugate 17c67df352 Found more of Sputnik's date helper funcs. 2011-09-21 15:40:29 -07:00
Mark Miller 48f750deb6 Merged 2011-09-14 12:51:59 -07:00
Mark Miller 72d70024b9 Regenerated ietestcenter tests, taking into account info from IETCGlobalScope.js 2011-09-14 12:49:33 -07:00
David Fugate 0b0736cbee S11.1.1_A2 (https://bugs.ecmascript.org/show_bug.cgi?id=179) 2011-09-14 10:45:46 -07:00
Mark Miller d403f61b52 Regenerating converted files post-merge 2011-09-14 00:39:29 -07:00
Mark Miller fc18852cda Merge 2011-09-13 23:34:34 -07:00
Mark Miller fd40a156e4 minor 2011-09-13 23:21:43 -07:00
Mark Miller b796d10c4b The generated converted test, as generated from fixed converter
applied to many fixed sources, corresponding to previous two commits
2011-09-13 22:37:44 -07:00
Mark Miller bd72486ff2 Fixed a very large number of bad test case sources, especially
gratuitous strict mode incompatibility. Too many to continue fixing
manually this way. Don't know what to do about that.
2011-09-13 22:12:02 -07:00
David Fugate cbc587c61b Merge. 2011-09-13 16:22:37 -07:00
Mark Miller bba34a262e Reformatted to 80 columns. Inserted missing semicolons. Removed one
bogus semicolon. Except for the bogud semicolon, nothing should have
changed the meaning of the programs.
2011-09-13 01:08:50 -07:00
David Fugate 807a3ba1b7 Merge. 2011-09-12 11:25:23 -07:00
David Fugate 2c16b93983 Re-added tests disabled by https://bugs.ecmascript.org/show_bug.cgi?id=126. 2011-09-12 10:02:51 -07:00
Mark Miller 68d44bb52a Having restored the test262 sources of these to their original sputnik
form, they now convert correctly to tests that pass our
tools/test262.py test runner. The issue for all three was non-ascii content.
2011-09-12 08:34:41 -07:00
Mark Miller 9973643490 These are the three files that "diff" identified as "binary" files with differences from the Sputnik original. Restoring to their original Sputnik state. 2011-09-12 08:19:27 -07:00
Mark Miller 77450b53f2 Unlike the current sputnikLib.js, framework.js cannot define $ERROR
etc, because the substitution logic in test262.py operates on the
source after prepending framework.js.

The plan is to replace sputnikLib.js with framework.js. Also, the
substitution logic in test262.py should probably be fixed to apply the
substitution before prepending.
2011-09-11 21:45:26 -07:00
Mark Miller a2ca5b512b Adapted the sputnik command line testRunner to a command line
testRunner, test262.py, that can run all the converted tests.
2011-09-11 21:12:01 -07:00
Mark Miller d0f40b63a2 Updating a generated directory.
assertTrue became assertTruthy. Canonical form of doc-comment attribute value source no longer have a leading colon and trailing semicolon. Any existing such are stripped during conversion.
2011-09-11 21:07:23 -07:00
Mark Miller 274b5514fa As David Fugate requested, changed the conversion of ietestcenter
style to append runTestCase(funcName); rather than
assertTrue(funcName.call(this)), giving the testing framework more
control.
2011-09-09 14:48:37 -07:00
Mark Miller 0065b15889 Just checking in the converted files, generated using the previous commit. 2011-09-07 21:47:38 -07:00
Mark Miller ca417c93dc Now generating the format David Fugate and I agreed on this
morning. The rewrite of "function testcase()..." now puts the
assertTrue at the bottom. Preconditions, names, and ids are
removed. And the path in the file is ignored, and is instead set
accurately according to where the file is found.
2011-09-07 21:42:49 -07:00
Mark Miller 57c450002d Removed an invalid "var". 2011-09-07 08:52:29 -07:00
Mark Miller d6df1d4a36 Fixed a typo precodition -> precondition 2011-09-07 08:48:46 -07:00
Mark Miller bc6a3ba731 All sputnik and ietestcenter tests converted to proposed new canonical form 2011-09-06 23:35:18 -07:00
David Fugate 9a8578be92 activityBar is a member of the Presenter object. 2011-08-25 14:14:29 -07:00
David Fugate 2871886420 test\harness\*:
- a lot of JS harness code written in strings have been moved out to actual physical files
  such as ed.js (syntax error detection for globally scoped tests) and gs.js (global scope test
  case validator).  This change makes it far easier to maintain the test harness code
- reorganized helper.js providing a clear indication which methods are used by external objects,
  which are implementation details, and which are unequivocally test262-specific.  I've also added,
  openErrorWindow, which will be used to open a descriptive error message window for each test case
  failure reported on the 'Run' tab
- improved the error message for syntax errors occurring when a test case fails to load
- sta.js no longer tries to pickle all helper functions it contains!  Instead, we load the file
  directly from sth.js.  The performance of fnGlobalObject has been improved.  Finally, the ES5Harness
  object has been moved from sth.js (in a string) to here
- sth.js now has a browser implementer hook, controller.implementerHook, which allows browser implementers
  to handle test case failures in their own way (e.g., log to the filesystem).  The 'run' function was
  basically re-written

Added 37 new test cases from the "IE Test Center" Build release.  There were 14 modifications to
existing test cases as well.  Refactored SputnikGlobalScope.js such that test case paths are now used
as indices into the GlobalScopeTests array.

TestCasePackager.py had the concept of templated test harnesses introduced - see templates\runner.test262.html.
Also added support for one HTML test harness per ES5 chapter.  Last but not least, TestCasePackagerConfig.py
now has a 'source control' abstraction class which abstracts away source control adds|edits when dynamically
generating *.json and *.html test chapters.
2011-08-25 11:18:44 -07:00
David Fugate 1f6f66cb19 https://bugs.ecmascript.org/show_bug.cgi?id=76 2011-07-18 11:08:15 -07:00
David Fugate bda89b6452 https://bugs.ecmascript.org/show_bug.cgi?id=127 2011-07-18 10:59:06 -07:00
David Fugate 5b2de8816f https://bugs.ecmascript.org/show_bug.cgi?id=126 2011-07-18 10:29:23 -07:00
David Fugate 009262deba https://bugs.ecmascript.org/show_bug.cgi?id=128 2011-07-18 09:15:03 -07:00
David Fugate 383aaca3b1 https://bugs.ecmascript.org/show_bug.cgi?id=133 2011-07-18 09:05:23 -07:00
David Fugate 9eb6c8c2d2 15.4.4.15-3-14, 15.4.4.15-3-29, and 15.4.4.15-3-8 were disabled with no reason or bug given. These actually look OK,
and pass on all browsers...
2011-07-08 16:02:19 -07:00
David Fugate 7ffad2be3e Several new Sputnik tests included:
if (!strict_mode) { throw new SyntaxError('unspecified case'); }

This doesn't work for a few reasons:
1.  'strict_mode' is undefined in the test case exeuction context. That is, the test framework
    does not force the test case into strict mode
2.  The test case code looks like:
	"use strict";
	if (!strict_mode) ...
        ...
    Note that 'strict_mode' is not set before being accessed

Really the metadata for these test cases should have a "@strict" property added to instruct the test
framework *not* to run the test if an implementation doesn't support strict mode.
2011-07-07 14:31:22 -07:00
David Fugate d848bcad16 Recent update from Sputnik has made S12.10_A3.3_T4 a valid ES5 test. Re-enabled 2011-07-07 13:42:04 -07:00
David Fugate a442fb1509 More Sputnik tests have been fixed and enabled. 2011-07-07 12:58:55 -07:00
David Fugate 314a8abb70 https://bugs.ecmascript.org/show_bug.cgi?id=12 is partially fixed. 2011-07-07 10:38:08 -07:00
David Fugate f3ed594ec4 https://bugs.ecmascript.org/show_bug.cgi?id=18 (IE Test Center tests only) 2011-07-07 10:10:32 -07:00
David Fugate c77066fc25 https://bugs.ecmascript.org/show_bug.cgi?id=118 2011-07-07 08:47:12 -07:00
David Fugate 6224968765 https://bugs.ecmascript.org/show_bug.cgi?id=120 2011-07-07 08:34:41 -07:00
David Fugate aa4b085528 https://bugs.ecmascript.org/show_bug.cgi?id=117
Disabled 9 invalid tests.
2011-07-06 11:00:55 -07:00
David Fugate 09ea4a8413 https://bugs.ecmascript.org/show_bug.cgi?id=61 2011-07-05 16:39:32 -07:00
David Fugate c8559941b2 https://bugs.ecmascript.org/show_bug.cgi?id=61 2011-07-05 16:36:04 -07:00
David Fugate 8b0704e64c https://bugs.ecmascript.org/show_bug.cgi?id=87 *should* in theory be fixed now. Need to test
on the live website to be sure.
2011-07-01 12:01:55 -07:00
David Fugate 42b534663f Added a small script, InvalidTestDetector.py, to help detect test dependencies on DOM and
host objects (which make them invalid for test262).  Using this, I found one benign 'alert'
usage (it was never even called) and removed it.
2011-06-30 14:31:11 -07:00
David Fugate 4cbb71f6b0 An ActiveX test slipped into IE Test Center/test262 by mistake. Removed 2011-06-30 09:59:25 -07:00
David Fugate 254821616f Added a few missing test case descriptions. 2011-06-29 12:02:57 -07:00
David Fugate 0e187575b1 Regenerated website. 2011-06-29 11:30:40 -07:00
David Fugate b78c959d2a New Sputnik 'negative' metadata that included exception type was causing problems for SputnikConverter.
Took the easy fix and split the metadata into two: 'negative' and 'errortype'.
2011-06-29 11:11:12 -07:00
David Fugate c52161e734 Fixed Sputnik test 'path' metadata. 2011-06-29 10:04:15 -07:00
David Fugate dce7ac2a5e Converted Sputnik's latest test case push to test262 format. 2011-06-29 09:40:07 -07:00
David Fugate e182868bad Converted Sputnik's latest test case push to test262 format. 2011-06-29 09:38:48 -07:00
David Fugate b8a44856a4 Fixed 'assertion' and 'description' metadata formatting issues (WRT SputnikConverter). 2011-06-29 09:18:48 -07:00
David Fugate 47b14845af Merged remote changes. 2011-06-28 10:43:22 -07:00
David Fugate febe8b348b Ported Sputnik changes over from the 'external' directory to 'test/suite/sputnik'. Still need to convert
the tests over to test262 format.
2011-06-27 16:20:31 -07:00
David Fugate 55855b285e Updated test262 with test case additions and edits from the PPB2 release of IE10. This included:
- 22 test case additions (mostly strict mode)
- 4 test case edits
2011-06-23 15:04:00 -07:00
David Fugate 9c0e7dd413 Test failures in the 'Run' tab now have a link to the test case's source
similar to the 'Results' tab.
2011-06-09 16:31:52 -07:00
David Fugate 33ba3d7621 Moved TEST_LIST_PATH from sth.js to default.html. 2011-06-07 09:48:10 -07:00
David Fugate b084094004 https://bugs.ecmascript.org/show_bug.cgi?id=103 2011-05-25 17:27:58 -07:00
David Fugate 7732e3578e More improvements regarding https://bugs.ecmascript.org/show_bug.cgi?id=33 2011-05-25 14:11:05 -07:00
David Fugate f9ec77866a Fix for https://bugs.ecmascript.org/show_bug.cgi?id=72. 2011-05-25 13:07:43 -07:00
David Fugate 0baf9ae7f6 Seems I accidentally checked in 10.4.2-2-c-1.js.orig in addition to 10.4.2-2-c-1.js. Removed 10.4.2-2-c-1.js.orig. 2011-05-20 13:48:57 -07:00
David Fugate 33c1a02fea Original test author fixed Bug #69. 2011-05-18 15:27:12 -07:00
David Fugate 623f25e341 - disabled five invalid tests
- fixed issues in 10.6-13-a-1.js, 13.2-17-1.js, and 15.5.4.20-2-46.js.  Still have a number
  of test bugs to look into once I get more free time though
2011-05-13 08:46:20 -07:00
David Fugate 994e6f3049 A previous check-in made today lost generation of 'N.0' test section directories for
tests covering a given chapter, N, without delving into subsections.  This in turn
broken the Results page which was by default displaying individual results for chapters
13(.0) and 14(.0).  Fixed.
2011-04-20 16:52:14 -07:00
David Fugate ef45786a21 A major web browser does not fire window.onerror for iframes when the iframe's document
contains a JavaScript syntax error (major test area).  Added a workaround.
2011-04-20 15:39:50 -07:00
David Fugate b055423983 Removed (SputnikConverter) requirement that globally scoped tests be generated to a
'GlobalScope' directory.
2011-04-20 12:01:06 -07:00
David Fugate 545f2c34a0 *NOTE: this is a work-in-progress. Need to remove our dependency on a separate 'GlobalScope'
directory next*

SputnikConverter:
- ES5TestCase.cs
	* Case of JSON-based property names was wrong.  Fixed
	* Use the tests' 'id' instead of 'path' as the GlobalScopeTests keys
	* Added 'id' and 'path' as Global Scope test metadata.  The correct/clean solution here is to simply use 'path'
	  as the key to GlobalScopeTests, but this refactoring needs to be undertaken later when we can convert the
	  'normal' test cases over to use 'path' as the key as well
	* Turns out we cannot depend on the message received by window.onerror to have some form of "syntax"
	  contained within it.  Instead, we'll just rely on the regular expression ".", matches any one character,
	  for the short term
- SputnikTestCase.cs
	* Same case issue as for ES5TestCases.cs
	* Don't trust the Sputnik metadata for the ES5 section name or even test case id to be correct. Instead,
	  generate this information from the file path of the test case


TestCasePackager.py:
- added a new global, GLOBAL_SCOPE_FILES, which is a list of JS files found directly under test\suite\*.js
  which include metadata for so-called globally scoped tests.  These files are imported directly by the HTML
  test harness

test\suite\*:
- regenerated Sputnik tests based on new converter

default.html:
- import SputnikGlobalScope.js.  Really TestCasePackager.py should generate the global scope imports to
  default.html automatically...


website\resources\scripts\testcases\*:
- test cases have shuffled from existing *.json files into globalscope.json
2011-04-20 11:17:38 -07:00
David Fugate a1c34e8c0a Renamed 15_Native_ECMA_Script_Objects to 15_Native. 2011-04-08 10:11:52 -07:00
David Fugate 7ee99fb6ce We had a duplicate copy of fnGlobalObject in both sth.js and sta.js. Left only the sta.js copy.
Regenerated the JSON files based on ietestcenter changes.
2011-04-08 09:44:12 -07:00
David Fugate 6900bf538b test/suite/ietestcenter is now sync'ed to IE PPB10. 2011-04-08 09:24:19 -07:00
David Fugate 08a7f7433a Few minor changes to sta.js and sth.js to support Strict Mode.
Renamed move_test.py to FixTestCasePlacement.py. Still a work in progress.
2011-04-07 10:12:45 -07:00
David Fugate 09186bafb4 84 IE Test Center test cases had corrupted 'path' properties in
their test case objects.  Created an automated tool, FixPathsAndIds.py,
to fix these.

TestCasePackager.py no longer throws when it encounters a non-*.js
file where it expects test cases.  Instead, it simply ignores it.
2011-03-30 09:48:29 -07:00
David Fugate 58fbb10d21 Ecmascript bug 60 is indeed valid and I've disabled the two related test
cases.
2011-03-23 17:27:18 -07:00
David Fugate bbc06eb6f2 Now looked at all bugs.ecmascript.org test case issues up to and
including https://bugs.ecmascript.org/show_bug.cgi?id=59.
2011-03-23 15:39:26 -07:00
David Fugate 4ec74def48 Disabled invalid tests - see https://bugs.ecmascript.org/show_bug.cgi?id=80
for details.
2011-03-23 15:19:34 -07:00
David Fugate feccaa7ac4 Added partial support for test cases not in any particular section of an
ES5 chapter.  That is, ecma-262-toc.xml now has '.0' sections for all chapters
and I've manually modified (Sputnik Ch. 13 & 14) test case id's and paths
to utilize the '.0' suffix.  Long term, SputnikConverter needs to perform
this transformation itself though.
2011-03-11 17:42:53 -08:00
David Fugate 0edb82f716 Fixed a number of small issues with the website. 2011-03-11 14:14:23 -08:00
David Fugate 2a7b5435d7 Switched from using XML for encoded test cases to JSON. 2011-03-11 10:59:52 -08:00
David Fugate e4703374f8 Cleaned up the excluded test case list. 2011-03-10 10:01:21 -08:00
David Fugate efb7996904 Added IE Test Center test case contributions to test/suite/ietestcenter. 2011-03-09 12:00:57 -08:00
David Fugate 341815df0d Removed (IE9 RC1 refresh) IE TestCenter contributions. To be replaced with
IE9 RTM contributions shortly.
2011-03-09 11:58:22 -08:00
David Fugate e1105f20d9 Disabled four invalid test cases - see https://bugs.ecmascript.org/show_bug.cgi?id=58. 2011-03-08 09:06:15 -08:00
David Fugate 0bcccaca10 Refactored TestCasePackager.ps1 such that it now produces test case XMLs according
to the following criteria:
1.  If a test case directory directly contains *.js files at the root level, package
    the entire directory as an XML regardless of how many *.js files are in
    subdirectories
2.  If the directory and subdirectories contain less than 1,000 test cases, package
    the entire directory as an XML.  Otherwise...
3.  Perform steps 1 and 2 on each subdirectory of the directory

The net effect of this change is that no test case XMLs are larger than 1.5 megs any longer,
although the total number of test XMLs has jumped from about a dozen to ~75.  This should
make running the test harness seem a little smoother across all browsers since we won't be
blocked downloading 4 meg files for several seconds any longer.
2011-03-02 10:24:58 -08:00
David Fugate 6a806c8b7f Three test cases fixes. One of these involved re-enabling 15.2.3.3-4-188.js. 2011-03-01 11:08:16 -08:00
David Fugate f4ddccc805 Fix for https://bugs.ecmascript.org/show_bug.cgi?id=32. 2011-02-28 14:03:58 -08:00
David Fugate d699a51a2c Disabled 27 bugs due to https://bugs.ecmascript.org/show_bug.cgi?id=22. 2011-02-25 10:52:39 -08:00
David Fugate c2f3659337 Tests affected by https://bugs.ecmascript.org/show_bug.cgi?id=10 have either been fixed or
removed.  No need to disable them any longer.
2011-02-25 10:35:45 -08:00
David Fugate 413c693d4a Added fresher bits from external\contributions\Microsoft\ietestcenter_ie9_rc1_refresh1. 2011-02-25 10:23:38 -08:00
David Fugate 1eb572044d Removing test/suite/ietestcenter and replacing it with fresher bits
from external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1.
2011-02-25 10:21:24 -08:00
David Fugate 2c0f0a557b Disabled an invalid test - S15.3.4.2_A1_T1.js. 2011-02-24 17:50:23 -08:00
David Fugate bac362d0c5 Disabled 13 invalid tests and 4 tests that were incorrectly converted to Test262
format.
2011-02-21 12:00:13 -08:00
David Fugate 45c821fb2f Disabled more invalid test cases as per ES5. These mostly deal with host objects
that are expected to exist, but may very well now.
2011-02-14 14:08:19 -08:00
David Fugate d3d9d28c18 Sputnik tests were previously modified to ensure global objects with common names (e.g., 'obj')
were actually unique across the test cases.  This *was* needed prior to November as we weren't
running each test case in it's own private global environment.  The situation now is that
we're running each test within it's own iframe => the modifications are no longer needed.

Few small improvements to SputnikConverter:
- App.config file locations have been fixed
- template files get pushed alongside generated tool binaries
- the root path for Sputnik conformance files is "Conformance", not "tests"
- allow the main exe to throw exceptions so they can be properly debugged with VS
2011-02-10 17:58:47 -08:00
David Fugate bd20fef7a1 Disabled 7 more invalid test cases. 2011-02-10 16:08:29 -08:00
David Fugate 8841b45e0c Six tests are dependent upon the Sputnik driver dynamically generating
some datetime constants before execution.  As we do not yet have support
for this, I've disabled them.  See https://bugs.ecmascript.org/show_bug.cgi?id=11
for more details.
2011-02-10 11:00:25 -08:00
David Fugate 1f54cd6343 Two 7.9 tests are invalid according to ES5 (see https://bugs.ecmascript.org/show_bug.cgi?id=7).
Disabled.
2011-02-08 13:59:17 -08:00
David Fugate 82c8d63eee Added a test harness 'debug' mode to Simple Test Harness. Accessible via appending
"?sitedebug" to the end of the Test262 URL.

There's a mismatch between the Test262 test harness and IE Test Center's harness
which invalidated 15.4.4.17-5-1.js, 15.4.4.18-5-1.js, and 15.4.4.20-5-1.js on Test262.
Essentially what's going on is Test262 uses the 'window' object as 'this' for the test
case functions whereas IE Test Center uses the test case object housing the test case
function as this.  This causes problems for test cases pertaining to scoping.  I've gone
ahead and adjusted the Test262 tests to expect 'window' to be 'this', and will be updating
IE Test Center's harness to use the 'window' object as well so we don't run into this
problem again.
2011-02-08 09:42:59 -08:00
David Fugate e4d4a7a870 test\harness\helper.js: extended the 'finished' method to accept as input the total elapsed execution time
of the tests.  Emit this to the activity bar


test\harness\sta.js:  too many years of Python had me thinking JavaScript arrays have an append method:)  Fixed.
                      Also, added a pickled representation of all test helper functions found in this file


test\harness\sth.js:  detached most test helper functions from the iframe's document object (as globals) and
                      inject these into the actual test cases. It's a bit slower and not as elegant, but it is
                      cleaner from an ES5 purist perspective.  Still need to move Sputnik helper functions into
                      sta.js

                      Extended Controller such that it now measures overall test execution time.  Such a change
                      is very useful for measuring performance-impact changes such as the aforementioned
                      improvement
2011-02-03 16:28:52 -08:00
David Fugate 2ec3b287d7 - split sth.js (simple test harness) into sth.js and sta.js (simple test APIs)
- updated version number for the overall site to 0.3
2011-02-03 12:27:00 -08:00
David Fugate f301c17e6b sth.js: added a couple of test helper functions
Addressed test case issues detailed in https://mail.mozilla.org/pipermail/test262-discuss/2011-January/000020.html.
2011-02-02 13:24:45 -08:00
David Fugate 1ef6afcf78 ietestcenter sources are now synchronized with IE9 RC1 test cases. 2011-02-02 10:00:25 -08:00
David Fugate dd47c9ea12 Updating IE Test Center sources to IE9 RC1. 2011-02-02 09:57:23 -08:00
David Fugate 37859d334a - default.html still had a reference to reports.js. Removed. Also, removed test\harness\reports.js
- test\harness\sth.js:  fixed a bug spotted by Mark Miller.  In short, we were allowing
  a test case return value of 'undefined' to be successful WRT IE Test Center tests because
  Sputnik tests normally return undefined (successful or not).  We now differentiate between
  Sputnik/IE Test Center when evaluating return values
2011-01-17 15:01:19 -08:00
David Fugate 8bd3768a4e - all files supporting the 'Browsers' tab have been removed.
- updated website version number to 0.2
2011-01-17 11:08:45 -08:00
David Fugate 3fedec4130 15.4.4.14-9-b-i-6.js and 15.4.4.15-9-b-i-6.js were never reviewed internally at Microsoft
for their adherence to the ES5 specs. Removing until we've fulfilled all internal policies
around these two tests.
2010-11-16 08:00:32 -08:00
David Fugate 35450e9e80 Did a bit of refactoring on the test262 directory structure and propagated changes from
website\* out to test\*:
- Removed test\harness\ECMA-262-TOC.xml.  The casing on this file was incorrect, but
  more importantly it's a static file not generated by the harness
- Populated test\harness with the contents of website\resources\scripts\global\.  In
  the future, we need to update test\harness\* and propagate these changes out to
  website\*
- Test\suite\ietestcenter is now a verbatim copy of the IE Test Center tests that
  WERE under website\resources\scripts\testcases\*
- Moved all Sputnik tests from website\resources\scripts\testcases\* out to
  test\suite\sputnik_converted
- Moved website\resources\scripts\testcases\excludelist.xml out to test\config\*.  This
  particular file was only used for the test conversion process to XML, and is not actually
  needed by the website as best as I can tell
- Website\resources\scripts\testcases now only contains the XMLized test cases.  This is
  the right thing to do as the *.js files here weren't actually being used by the website
  and the general public can now peruse the test cases directly via Mercurial
2010-11-15 21:23:35 -08:00
David Fugate 5892707de0 Fixed a comment in an IE Tester Center test case. 2010-11-12 17:19:12 -08:00
David Fugate 62cde7819a Propagated changes from website\resources\scripts\global over to test\harness\*. In the future, the
website needs to be generated based on the contents of test\harness\*, not the other way around.
2010-11-03 10:22:23 -07:00
David Fugate 7396642963 This commit includes Microsoft's initial contributions to Test262:
- external\contributions\: test contributions to Test262 from external entities such as Microsoft and Google.
                           This directory consists of the external tests without any modifications
- test\harness\:  test harness used to run Test262 tests.  Presently web-based
- test\suite\:    suite of vendor-neutral ECMAScript test cases conforming to the ES5 spec
- tools\:         among other things this includes a set of tools used to convert various external test
                  contributions to a format the Test262 test harness can consume
- website\:       an archived copy of the http://test262.ecmascript.org website
2010-10-18 20:50:07 -07:00