Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit a6c1345

Browse files
author
mikesamuel@gmail.com
committed
more IE test fixes
1 parent 7fb41f7 commit a6c1345

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

js-modules/extractSourceSpans_test.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ <h1>Extract Source Spans Test</h1>
110110
actual.className += passed ? ' ok' : ' failure';
111111
} catch (ex) {
112112
actual.className += ' error';
113-
actual.appendChild(document.createTextNode('Error: ' + ex));
113+
actual.appendChild(document.createTextNode('Error: ' + (ex.message || ex)));
114114
}
115115
}
116116
}, 0)</script>
117117

118118
<hr>
119119
<address></address>
120-
<!-- hhmts start --> Last modified: Tue Mar 29 15:41:20 PDT 2011 <!-- hhmts end -->
120+
<!-- hhmts start --> Last modified: Tue Mar 29 15:43:20 PDT 2011 <!-- hhmts end -->
121121
</body> </html>

js-modules/numberLines_test.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ <h1>Number Lines Test</h1>
9797
actual.className = passed ? 'ok' : 'failure';
9898
} catch (ex) {
9999
actual.className = 'error';
100-
actual.appendChild(document.createTextNode('Error: ' + ex));
100+
actual.appendChild(document.createTextNode('Error: ' + (ex.message || ex)));
101101
}
102102
actual.className += ' actual';
103103
}
104104
}, 0)</script>
105105

106106
<hr>
107107
<address></address>
108-
<!-- hhmts start --> Last modified: Tue Mar 29 15:39:04 PDT 2011 <!-- hhmts end -->
108+
<!-- hhmts start --> Last modified: Tue Mar 29 15:43:31 PDT 2011 <!-- hhmts end -->
109109
</body> </html>

js-modules/recombineTagsAndDecorations_test.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ <h1>Recombine Tags And Decorations</h1>
8383
actual.className = passed ? 'ok' : 'failure';
8484
} catch (ex) {
8585
actual.className = 'error';
86-
actual.appendChild(document.createTextNode('Error: ' + ex + '\n' + ex.stack));
86+
actual.appendChild(document.createTextNode(
87+
'Error: ' + (ex.message || ex) + '\n' + ex.stack));
8788
}
8889
actual.className += ' actual';
8990
}

src/prettify.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,8 +1040,8 @@ window['PR']
10401040
var startDec = decorations[start + 1];
10411041
var end = start + 2;
10421042
while (end + 2 <= nDecorations
1043-
&& (decorations[end + 1] === startDec
1044-
|| decorations[end] === decorations[end + 2])) {
1043+
&& (decorations[end + 1] === startDec
1044+
|| decorations[end] === decorations[end + 2])) {
10451045
end += 2;
10461046
}
10471047
decorations[decPos++] = startPos;
@@ -1076,7 +1076,7 @@ window['PR']
10761076
span.appendChild(textNode);
10771077
if (sourceIndex < spanEnd) { // Split off a text node.
10781078
spans[spanIndex + 1] = textNode
1079-
// TODO: Possibly optimize by using '' if there's no flicker.
1079+
// TODO: Possibly optimize by using '' if there's no flicker.
10801080
= document.createTextNode(source.substring(end, spanEnd));
10811081
parentNode.insertBefore(textNode, span.nextSibling);
10821082
}
@@ -1331,7 +1331,7 @@ window['PR']
13311331
// Look for a class like linenums or linenums:<n> where <n> is the
13321332
// 1-indexed number of the first line.
13331333
var lineNums = cs.className.match(/\blinenums\b(?::(\d+))?/);
1334-
lineNums = lineNums
1334+
lineNums = lineNums
13351335
? lineNums[1] && lineNums[1].length ? +lineNums[1] : true
13361336
: false;
13371337
if (lineNums) { numberLines(cs, lineNums); }

0 commit comments

Comments
 (0)