Commit Graph

1558 Commits

Author SHA1 Message Date
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 c4c4a8f977 Merged remote changes 2011-06-28 10:39:50 -07:00
David Fugate 0005b0b87b Merged remote changes 2011-06-28 10:36:30 -07:00
David Fugate e69a5fa68f Removed a test file created by Mark Miller to ensure his Hg account was working. 2011-06-28 09:41:53 -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
Mark Miller a7e6453c0e Adding new files from sputniktests r97 2011-06-27 08:58:09 -06:00
Mark Miller a230618291 Updating Google contribution to r97 of sputniktests. 2011-06-27 08:52:25 -06:00
Mark Miller 02e7fb9cfa Updating Google's contribution to r95 of Sputnik tests. 2011-06-23 15:53:59 -07:00
Mark Miller bcc15fd553 Initial contribution of r88 of Google's Sputnik tests 2011-06-23 15:37:18 -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
Mark Miller dc18b7c435 testing hg access 2011-06-23 11:32:45 -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 c04a994e00 Added missing license header to TestCasePackager.py. Also, split
this module in two such that the configuration of the test case
packaging tool is separate from the implementation.
2011-06-02 15:41:54 -07:00
Mark Miller e18541dce5 test commit 2011-05-31 16:25:26 -07:00
David Fugate e3da78c009 Merge... 2011-05-31 13:47:26 -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 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 46cb0b9f54 Removed 'website' version; left in 'test suite' version displayed on the 'run' page. 2011-05-03 09:48:03 -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 06e62f878b A number of small improvements to Sputnik Test Converter:
- restructured the generated GlobalScope.js file such that the HTML test harness
  can import multiple such files without worrying about one blowing aways another's
  metadata
- inline with the last change, GlobalScope.js has been renamed to SputnikGlobalScope.js
  and generated directly to test\suite\*
- the path and ID properties for most entries in GlobalScope.js were incorrect.  That is,
  they were based on the metadata contained in the original Sputnik tests and not the
  new test262 directories and filenames
- generate global scope tests to test\suite\GlobalScope\* instead of
  test\suite\sputnik_converted\GlobalScope\*.  Going forward we need to move towards
  integrating all test sources into test262 directories (e.g., "GlobalScope"===good;
  "Sputnik\GlobalScope"===not-so-good)
- a few hacks to the sources (e.g., private vars to public vars) I'll fix in a refactoring
  later.  Just trying to get everything working first
2011-04-19 10:15:02 -07:00
David Fugate 24b2fcf78d Vendor did a bit of work to preserve Sputnik's negative test cases in their existing format.
Still needs a bit of integration work into the test harness.

A number of Sputnik tests were written outside the context of a chapter's sections.  E.g.,
"Chapter 13" versus "Chapter 13, Section 1".  We now fake a section number ("13.0" for the
example above) for such cases when generating test case metadata.
2011-04-08 13:29:16 -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 1af6eb57c0 Microsoft's test262 contributions with respect to IE PPB10. 2011-04-08 09:20:26 -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 76ac2946d5 Removed TestCasePackager.ps1. It's been supplanted by TestCasePackager.py. 2011-03-23 13:46:59 -07:00
David Fugate ba59cf13be More cleanup on TestCasePackager.py. 2011-03-23 13:46:15 -07:00
David Fugate 31e2bcacf6 Partial cleanup of TestCasePackager.py. Major change is the 'json'
module is now utilized.
2011-03-23 12:48:09 -07:00
David Fugate 61343f1b93 TestCasePackager.py is a verbatim port of TestCasePackager.ps1. The
rationale behind the addition of this file is it's meant to replace
TestCasePackager.ps1 outright and will be runnable on all major
operating systems.  There's still a bit of cleanup work needed as
the Python port was hardly optimized for the language.

A few side effects of this change:
- it now takes under ten seconds to generate the test262 website (PS
  version was taking over a minute)
- generated *.json files are ~5% smaller in size (PS was forcing
  '\r\n' and the Python version preserves the tests' newlines whether
  they're '\r\n' or '\n')
2011-03-23 10:37:21 -07:00
David Fugate 2282dfba34 Fixed a typo on the main page. 2011-03-14 11:44:30 -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