TestCasePackager.ps1 had problems dealing with test case files that had valid test code

prior to the usage of "ES5Harness".  Specifically in cases like:
  var abc = ...;
  ES5Harness.registerTest( {
  //...abc gets used here

the declaration of "abc" would've been ripped out thereby corrupting the test.

This change fixes the issue for all existing IE Test Center and Sputnik test cases. Note
however that it could potentially fail for lines like this: "/*abc*/ /*".  If we ever add
cases including comments like this, the implementation of isTestStarted will need to be
revisited.

There were five such test cases that were being affected by this issue in IE Test
Center's chapter 10 and 15 tests.  These have all been fixed via the updated script.
This commit is contained in:
David Fugate 2010-11-16 15:43:29 -08:00
parent 3fedec4130
commit 42b884b7ba
3 changed files with 7 additions and 7 deletions

View File

@ -3,11 +3,11 @@
<!-- spec structure in this file, for now the section structure is defined in the -->
<!-- sections.js file -->
<section name="Chapter - chapter10" numTests="15">
<test id="10.4.2-1-1"><![CDATA[dmFyIF9fMTBfNF8yXzFfMV8xID0gInN0ciI7CgpFUzVIYXJuZXNzLnJlZ2lzdGVyVGVzdCggewppZDogIjEwLjQuMi0xLTEiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTAvMTAuNC8xMC40LjIvMTAuNC4yLTEtMS5qcyIsCgpkZXNjcmlwdGlvbjogIkluZGlyZWN0IGNhbGwgdG8gZXZhbCBoYXMgY29udGV4dCBzZXQgdG8gZ2xvYmFsIGNvbnRleHQiLAoKdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgdmFyIF9ldmFsID0gZXZhbDsKICB2YXIgX18xMF80XzJfMV8xXzEgPSAic3RyMSI7CiAgaWYoX2V2YWwoIlwnc3RyXCcgPT09IF9fMTBfNF8yXzFfMV8xIikgPT09IHRydWUgJiYgIC8vIGluZGlyZWN0IGV2YWwKICAgICBldmFsKCJcJ3N0cjFcJyA9PT0gX18xMF80XzJfMV8xXzEiKSA9PT0gdHJ1ZSkgICAvLyBkaXJlY3QgZXZhbAogICAgcmV0dXJuIHRydWU7CiB9Cn0pOwo=]]></test>
<test id="10.4.2-1-2"><![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W5kZWZpbmVkOw0KCXJldHVybiAoZnVuY3Rpb24gKCkge3JldHVybiBhcmd1bWVudHMubGVuZ3RoICE9PSB1bmRlZmluZWR9KSgpOw0KIH0NCg0KfSk7DQo=]]></test>
<test id="10.6-6-4"><![CDATA[RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsNCmlkOiAiMTAuNi02LTQiLA0KDQpwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxMC8xMC42LzEwLjYtNi00LmpzIiwNCg0KZGVzY3JpcHRpb246ICInbGVuZ3RoJyBwcm9wZXJ0eSBvZiBhcmd1bWVudHMgb2JqZWN0IGZvciAwIGFyZ3VtZW50IGZ1bmN0aW9uIGNhbGwgaXMgMCBldmVuIHdpdGggZm9ybWFsIHBhcmFtZXRlcnMiLA0KDQp0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsNCiAgICAgIHZhciBhcmd1bWVudHM9IHVuZGVmaW5lZDsNCglyZXR1cm4gKGZ1bmN0aW9uIChhLGIsYykge3JldHVybiBhcmd1bWVudHMubGVuZ3RoID09PSAwfSkoKTsNCiB9DQoNCn0pOw0K]]></test>
</section>
</testCollection>
</testCollection>

View File

@ -164,7 +164,7 @@
<test id="15.2.3.13-0-2"><![CDATA[RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsNCmlkOiAiMTUuMi4zLjEzLTAtMiIsDQoNCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy4xMy8xNS4yLjMuMTMtMC0yLmpzIiwNCg0KZGVzY3JpcHRpb246ICJPYmplY3QuaXNFeHRlbnNpYmxlIG11c3QgZXhpc3QgYXMgYSBmdW5jdGlvbiB0YWtpbmcgMSBwYXJhbWV0ZXIiLA0KDQp0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsNCiAgaWYgKE9iamVjdC5pc0V4dGVuc2libGUubGVuZ3RoID09PSAxKSB7DQogICAgcmV0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