Skip to content

Commit

Permalink
Update global variable "munit" in printclient.js to munitDiv to preve…
Browse files Browse the repository at this point in the history
…nt a namespace collision with the package "munit".
  • Loading branch information
mikestead committed Apr 6, 2013
1 parent 65bbbdd commit e7db12e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Binary file modified src/index.n
Binary file not shown.
20 changes: 10 additions & 10 deletions src/resource/js/printclient.js
Expand Up @@ -59,7 +59,7 @@ function emptyQueue()
//////////

var initialized = false;
var munit = null;
var munitDiv = null;

var currentLine = null;

Expand Down Expand Up @@ -118,16 +118,16 @@ function setResultBackground(result)
function debug(value)
{
var div = createDiv("debug", "debug");
munit.appendChild(div);
munitDiv.appendChild(div);
div.innerHTML = value;
}

function initialize()
{
initialized = true;

munit = createDiv("munit", "munit");
document.body.appendChild(munit);
munitDiv = createDiv("munit", "munit");
document.body.appendChild(munitDiv);

var swf = document.getElementById("swfContainer");
if(swf != null && swf != undefined)
Expand All @@ -144,7 +144,7 @@ function munitPrintLine(value, clazz)
if(clazz == null) clazz = "line";
currentLine = createDiv(null, clazz);
currentLine.innerHTML = value;
munit.appendChild(currentLine);
munitDiv.appendChild(currentLine);
}

function munitPrint(value)
Expand Down Expand Up @@ -188,7 +188,7 @@ function createTestClass(testClass)
if(currentClassId == null)
{
var tests = createDiv(MUNIT_TESTS, MUNIT_TESTS);
munit.appendChild(tests);
munitDiv.appendChild(tests);
}

currentClassId = convertStringToId(testClass);
Expand Down Expand Up @@ -327,11 +327,11 @@ function setTestClassResult(level)
function createCoverageReport(value)
{
var lineBreak = createLineBreak();
munit.appendChild(lineBreak);
munitDiv.appendChild(lineBreak);


var coverage = createSectionDiv(MUNIT_COVERAGE, "munit-coverage");
munit.appendChild(coverage);
munitDiv.appendChild(coverage);

var header = document.getElementById(MUNIT_COVERAGE + "_header");
header.innerHTML = "<b>Code Coverage Result: " + value + "%</b>";
Expand Down Expand Up @@ -414,13 +414,13 @@ function addCoverageSummary(value)
function printSummary(value)
{
var lineBreak = createLineBreak();
munit.appendChild(lineBreak);
munitDiv.appendChild(lineBreak);


var coverage = createDiv(MUNIT_SUMMARY, "munit-summary");

coverage.innerHTML = value;
munit.appendChild(coverage);
munitDiv.appendChild(coverage);
}


Expand Down
Binary file modified src/run.n
Binary file not shown.

0 comments on commit e7db12e

Please sign in to comment.