Skip to content

Commit

Permalink
Escaping test names
Browse files Browse the repository at this point in the history
  • Loading branch information
simonz committed Dec 8, 2011
1 parent 9533a89 commit a52c88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qunit/qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ var QUnit = {
},

test: function(testName, expected, callback, async) {
var name = '<span class="test-name">' + testName + '</span>', testEnvironmentArg;
var name = '<span class="test-name">' + escapeInnerText(testName) + '</span>', testEnvironmentArg;

if ( arguments.length === 2 ) {
callback = expected;
Expand Down

0 comments on commit a52c88f

Please sign in to comment.