aboutsummaryrefslogtreecommitdiffstats
path: root/console/harness/helper.js
diff options
context:
space:
mode:
authorBrent Baker <brbaker@adobe.com>2013-06-07 07:05:37 -0400
committerBrent Baker <brbaker@adobe.com>2013-06-07 07:05:37 -0400
commit91bb82fb7e7dd5b6c3633daa8382326992c5245d (patch)
tree388664d8c787f8ad717336ebf6f3e2e3798f9ead /console/harness/helper.js
parent0d01ab1c7f9760c34c97a3cdcd5f6fa1df75ef9a (diff)
Bug 1548: Update results handling for Annex B section (r+bterlson)
Diffstat (limited to 'console/harness/helper.js')
-rw-r--r--console/harness/helper.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/console/harness/helper.js b/console/harness/helper.js
index 04c6cb6b7..982400def 100644
--- a/console/harness/helper.js
+++ b/console/harness/helper.js
@@ -259,9 +259,12 @@ function Presenter() {
if(id == 0)
return globalSection;
- var match = id.match(/\d+/g);
+ var match = id.match(/\d+|[A-F](?=\.)/g);
var section = globalSection;
+ if (match === null)
+ return section;
+
for(var i = 0; i < match.length; i++) {
if(typeof section.subsections[match[i]] !== "undefined") {
section = section.subsections[match[i]];
@@ -358,7 +361,7 @@ function Presenter() {
for (var i = 0; i < nodes.length; i++) {
if (nodes[i].nodeName === "sec") {
subsection = new Section(parentSection, nodes[i].getAttribute('id'), nodes[i].getAttribute('name'));
- parentSection.subsections[subsection.id.match(/\d+$/)] = subsection;
+ parentSection.subsections[subsection.id.match(/\d+$|[A-F]$/)] = subsection;
addSectionsFromXML(nodes[i].childNodes, subsection);
}
}