Hi,
I hope you can shed some light on this. Is there any reason why a test
run in the browser shows correctly when using the HTML output, but
renders incorrectly when using the EXT2 version?
This shows correctly:
http://localhost/cb_skeleton/test/integration/generalTest.cfc?method=runTestRemote&output=html
Doesn't display properly:
http://localhost/cb_skeleton/test/integration/generalTest.cfc?method=runTestRemote
I have run
http://localhost/mxunit/PluginDemoTests/HodgePodgeTest.cfc?method=RunTestRemote
which shows the EXT2 version correctly, so I don't know if there is
some weird variable in the test which is throwing it out.
This is the (first part) of HTML source, as you can see it's missing
the <script> tags between <body> and a_output[1].
<script src="/mxunit/resources/ext2/adapter/ext/ext-base.js"></
script>
<script src="/mxunit/resources/ext2/ext-all.js"></script>
<link rel="stylesheet" type="text/css" href="/mxunit/resources/
ext2/resources/css/ext-all.css" />
<style>
.failure{font-weight:bold;color:darkblue;}
.error{font-weight:bold;color:darkred;}
.success{font-weight:bold;color:darkgreen;}
.bodypad{padding-left:25px;padding-right:25px;;padding-top:10px;}
.x-grid3-header-offset{width:auto;}
.x-grid3-hd-inner{font-weight:bold;}
.header{padding-bottom: 5px; font-family: Verdana;}
h1{font-size: 1em; padding: 10px; color:darkblue; font-
weight:bold;}
.modelink{font-size: 10pt; font-family: Verdana;
position:relative; padding: 10px;}
</style>
<body>a_output[1] = ''; a_output[1] = a_output[1] + '<table class=
\"cfdump_array\"> <tr><th class=\"array\" colspan=\"2\" onClick=
\"cfdump_toggleTable(this);\" style=\"cursor:pointer;\" title=\"click
to collapse\">Debug Output - array </th></tr> <tr><td class=\"array\"
onClick=\"cfdump_toggleRow(this);\" style=\"cursor:pointer;\" title=
\"click to collapse\">1</td> <td> <table class=\"cfdump_struct\">
<tr><th class=\"struct\" colspan=\"2\" onClick=\"cfdump_toggleTable
(this);\" style=\"cursor:pointer;\" title=\"click to collapse\">Debug
Output - struct</th></tr> <tr> <td class=\"struct\" onClick=
\"cfdump_toggleRow(this);\" style=\"cursor:pointer;\" title=\"click to
collapse\">cbox_handler_results</td> <td> [empty string] </td> </tr>
<tr> <td class=\"struct\" onClick=\"cfdump_toggleRow(this);\" style=
\"cursor:pointer;\" title=\"click to collapse\">e</td> <td>
General.index </td> </tr> <tr> <td class=\"struct\" onClick=
\"cfdump_toggleRow(this);\" style=\"cursor:pointer;\" title=\"click to
collapse\">method</td> <td> runTestRemote </td> </tr> <tr> <td class=
\"struct\" onClick=\"cfdump_toggleRow(this);\" style=\"cursor:pointer;
\" title=\"click to collapse\">output</td> <td> extjs </td> </tr> <tr>
<td class=\"struct\" onClick=\"cfdump_toggleRow(this);\" style=
\"cursor:pointer;\" title=\"click to collapse\">setNextEvent</td> <td>
general.index </td> </tr> <tr> <td class=\"struct\" onClick=
\"cfdump_toggleRow(this);\" style=\"cursor:pointer;\" title=\"click to
collapse\">setNextEvent_addToken</td> <td> false </td> </tr> <tr> <td
class=\"struct\" onClick=\"cfdump_toggleRow(this);\" style=
\"cursor:pointer;\" title=\"click to collapse\">setNextEvent_baseURL</
td> <td> [empty string] </td> </tr> <tr> <td class=\"struct\" onClick=
\"cfdump_toggleRow(this);\" style=\"cursor:pointer;\" title=\"click to
collapse\">setNextEvent_persistKeys</td> <td> [empty string] </td> </
tr> <tr> <td class=\"struct\" onClick=\"cfdump_toggleRow(this);\"
style=\"cursor:pointer;\" title=\"click to collapse
\">setNextEvent_persistVarStruct</td> <td> <table class=\"cfdump_struct
\"> <tr><th class=\"struct\" colspan=\"2\" onClick=\"cfdump_toggleTable
(this);\" style=\"cursor:pointer;\" title=\"click to collapse\">Debug
Output - struct [empty]</th></tr> </table> </td> </tr> <tr> <td class=
\"struct\" onClick=\"cfdump_toggleRow(this);\" style=\"cursor:pointer;
\" title=\"click to collapse\">setNextEvent_postProcessExempt</td>
<td> false </td> </tr> <tr> <td class=\"struct\" onClick=
\"cfdump_toggleRow(this);\" style=\"cursor:pointer;\" title=\"click to
collapse\">setNextEvent_queryString</td> <td> [empty string] </td> </
tr> <tr> <td class=\"struct\" onClick=\"cfdump_toggleRow(this);\"
style=\"cursor:pointer;\" title=\"click to collapse
\">setNextEvent_ssl</td> <td> false </td> </tr> </table> </td></tr> </
table>';a_output[2] = ''; a_output[2] = a_output[2] + '<table class=
\"cfdump_array\"> <tr><th class=\"array\" colspan=\"2\" onClick=
\"cfdump_toggleTable(this);\" style=\"cursor:pointer;\" title=\"click
to collapse\">Debug Output - array </th></tr> <tr><td class=\"array\"
onClick=\"cfdump_toggleRow(this);\" style=\"cursor:pointer;\" title=
\"click to collapse\">1</td> <td> <table class=\"cfdump_struct\">
<tr><th class=\"struct\" colspan=\"2\" onClick=\"cfdump_toggleTable
(this);\" style=\"cursor:pointer;\" title=\"click to collapse\">Debug
Output - struct</th></tr> <tr> <td class=\"struct\" onClick=
\"cfdump_toggleRow(this);\" style=\"cursor:pointer;\" title=\"click to
collapse\">currentLayout</td> <td> Layout.Main.cfm </td> </tr> <tr>
<td class=\"struct\" onClick=\"cfdump_toggleRow(this);\" style=
\"cursor:pointer;\" title=\"click to collapse\">currentView</td> <td>
home </td> </tr> <tr> <td class=\"struct\" onClick=\"cfdump_toggleRow
(this);\" style=\"cursor:pointer;\" title=\"click to collapse\">e</td>
<td> General.index </td> </tr> <tr> <td class=\"struct\" onClick=
\"cfdump_toggleRow(this);\" style=\"cursor:pointer;\" title=\"click to
collapse\">method</td> <td> runTestRemote </td> </tr> <tr> <td class=
\"struct\" onClick=\"cfdump_toggleRow(this);\" style=\"cursor:pointer;
\" title=\"click to collapse\">output</td> <td> extjs </td> </tr> <tr>
<td class=\"struct\" onClick=\"cfdump_toggleRow(this);\" style=
\"cursor:pointer;\" title=\"click to collapse\">welcomeMessage</td>
<td> Welcome to ColdBox! </td> </tr> </table> </td></tr> </table>';/
mxunit/resources/ext2[1,'cb_skeleton.test.integration.generalTest','<a
href=\'/cb_skeleton/test/integration/generalTest.cfc?
testMethod=testdoSomething&method=runTestRemote&output=extjs
\'>testdoSomething</a>','Passed',266,'','<a href="javascript:showOutput
(1)">View output</a>'],
[2,'cb_skeleton.test.integration.generalTest','<a href=\'/cb_skeleton/
test/integration/generalTest.cfc?
testMethod=testindex&method=runTestRemote&output=extjs\'>testindex</
a>','Passed',250,'','<a href="javascript:showOutput(2)">View output</
a>']D484F784-1AA0-D8BE-7D7503B6C03B6BFE
<div id="modelink_D484F784-1AA0-D8BE-7D7503B6C03B6BFE"
class="modelink">
(<a href="?method=runTestRemote&output=html">view in normal html
mode</a>)
</div>