Commit Graph

1203 Commits

Author SHA1 Message Date
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