30 Commits

Author SHA1 Message Date
Norbert Lindenberg
9f4a513496 Merged changes. 2012-08-22 16:12:54 -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
Norbert Lindenberg
d371b39cb6 Fixed bug 443: packager.py fails on Mac because of .DS_Store files.
Running packager.py on Mac unfortunately also changes some line terminators in generated files (bug 444), so lots of additional files in this commit.
2012-07-18 12:19:53 -07:00
t-adamre
385b4f7163 Add capability to run chapters individually from the website 2012-06-12 14:54:30 -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
David Fugate
6c9436f977 Re-gen'ed website. 2011-10-03 12:08:06 -07:00
Mark Miller
68f00c57a3 Just change in generated formatting 2011-09-30 04:03:28 -04: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
ba41d38511 Regenerated website using new package.py and test/suite/converted. 2011-09-25 11:41:04 -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
a4a9057358 Added a reference to the new FAQ on the ES Wiki. 2011-07-01 14:18:35 -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
355ffd9d54 Fixed minor typo (see https://bugs.ecmascript.org/show_bug.cgi?id=74). 2011-05-31 13:42:12 -07:00
David Fugate
46cb0b9f54 Removed 'website' version; left in 'test suite' version displayed on the 'run' page. 2011-05-03 09:48:03 -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
2282dfba34 Fixed a typo on the main page. 2011-03-14 11:44:30 -07:00
David Fugate
0edb82f716 Fixed a number of small issues with the website. 2011-03-11 14:14:23 -08:00
David Fugate
8aa57ec203 Made the website version number more prominent. This was a request from a TC-39 meeting. 2011-03-04 15:08:50 -08:00
David Fugate
98a7dace4b Rebuilt the website using the newly added and removed+disabled tests. 0.5 2011-02-25 11:57:58 -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
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
afff585d55 Version numbers were incorrect on most *.html pages (referenced 1.0 and indicated the page was produced in October). Fixed
Added a blurb to the "Development" section of default.html referring Ecma TC39 members to http://wiki.ecmascript.org/doku.php?id=test262:test262
for details on test submissions.
2010-11-16 16:19:26 -08:00
David Fugate
7ec9ee2d66 Four or five IE Test Center test cases (ES5 Chapter 10) were corrupted due to a bug in
the Test262 XML conversion tool.  These have been manually updated, and a bug needs to
be filed on the tool when bugs.ecmascript.org comes back online.

Fixed an issue involving the Back button on the results page.
2010-11-13 15:22:20 -08:00
David Fugate
0f4607001b Added all command bar options back into browserreport.html (there are assumptions about the number
and sequencing of command bar options in the backend of the site).

Also, changed the version of test262 as reported by default.html to 0.1.
2010-11-12 11:03:58 -08:00
David Fugate
a7d48522e6 Removed "Browsers Report" as a title bar option in default.html. 2010-11-12 10:55:42 -08:00
David Fugate
fbb888778d Quite a few modifications have been made to the test harness (website/resources/scripts/global/*)
which have resulted in it being able to run negative test cases which corrupt the global JavaScript
environment.  This lets us enable fifty plus more Sputnik test cases.  Another positive result from
this test harness refactoring is that Opera no longer hangs when running the tests.
2010-11-12 09:27:59 -08:00
David Fugate
31a27896b8 A number of bugs in the Test262 harness are fixed with this check-in. 2010-11-01 16:28:46 -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