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.
This commit is contained in:
David Fugate 2010-11-13 15:22:20 -08:00
parent 8feb0705ab
commit 7ec9ee2d66
3 changed files with 15 additions and 8 deletions

View File

@ -119,7 +119,7 @@
<div class="content-results">
<div class="crumbContainer">
<div class="crumbs"></div>
<div style="float:right;"><a class="setBlue hide" id="backlinkDiv" ><< back</a></div>
<div style="float:right;"><a class="setBlue hide" id="backlinkDiv" href="#"><< back</a></div>
<div style="clear : both;"></div>
</div>
<div class="resultsHeader"> <strong>Total Tests:<span class="totalCases"></span></strong><br />

View File

@ -93,7 +93,7 @@ function Presenter() {
var current = currentSection;
// Walk backwards until we reach the global section.
while(current !== globalSection) {
while(current !== globalSection && current.parentSection !== globalSection) {
sectionChain.push(current);
current = current.parentSection;
}
@ -185,6 +185,7 @@ function Presenter() {
e.preventDefault();
currentSection = getSectionById(e.target.href.match(/#(.+)$/)[1]);
renderCurrentSection();
table.attr("scrollTop", 0);
}
/* Go back to the previous section */
@ -195,6 +196,12 @@ function Presenter() {
return;
currentSection = currentSection.parentSection;
// Since users click directly on sub-chapters of the main chapters, don't go back to main
// chapters.
if(currentSection.parentSection === globalSection)
currentSection = globalSection;
renderCurrentSection();
}

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[RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsNCmlkOiAiMTAuNC4yLTEtMSIsDQoNCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjEwLzEwLjQvMTAuNC4yLzEwLjQuMi0xLTEuanMiLA0KDQpkZXNjcmlwdGlvbjogIkluZGlyZWN0IGNhbGwgdG8gZXZhbCBoYXMgY29udGV4dCBzZXQgdG8gZ2x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h0IChpbnNpZGUgYW5vdGhlciBldmFsKSIsCgp0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICB2YXIgX18xMF80XzJfMV81ID0gInN0cjEiOwogIHZhciByID0gZXZhbCgiXAogICAgICAgICAgICAgIHZhciBfZXZhbCA9IGV2YWw7IFwKICAgICAgICAgICAgICB2YXIgX18xMF80XzJfMV81ID0gXCdzdHIyXCc7IFwKICAgICAgICAgICAgICBfZXZhbChcIlwnc3RyXCcgPT09IF9fMTBfNF8yXzFfNSBcIikgJiYgXAogICAgICAgICAgICAgIGV2YWwoXCJcJ3N0cjJcJyA9PT0gX18xMF80XzJfMV81XCIpXAogICAgICAgICAgICAiKTsgICAKICBpZihyID09IHRydWUpCiAgICByZXR1cm4gdHJ1ZTsKIH0KfSk7Cg==]]></test>
<test id="10.6-10-c-ii-1"><![CDATA[RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsNCmlkOiAiMTAuNi0xMC1jLWlpLTEiLA0KDQpwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxMC8xMC42LzEwLjYtMTAtYy1paS0xLmpzIiwNCg0KZGVzY3JpcHRpb246ICJhcmd1bWVudHNbaV0gY2hhbmdlIHdpdGggYWN0dWFsIHBhcmFtZXRlcnMiLA0KDQp0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsNCiAgZnVuY3Rpb24gZm9vKGEsYixjKQ0KICB7DQogICAgYSA9IDE7IGIgPSAnc3RyJzsgYyA9IDIuMTsNCiAgICBpZihhcmd1bWVudHNbMF0gPT09IDEgJiYgYXJndW1lbnRzWzFdID09PSAnc3RyJyAmJiBhcmd1bWVudHNbMl0gPT09IDIuMSkNCiAgICAgIHJldHVybiB0cnVlOyAgIA0KICB9DQogIHJldHVybiBmb28oMTAsJ3NzcycsMSk7DQogfQ0KfSk7DQo=]]></test>
<test id="10.6-10-c-ii-2"><![CDATA[RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsNCm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