Commit dfb1a9df authored by Rafael Monnerat's avatar Rafael Monnerat Committed by Łukasz Nowak

Upgrade Selenium code from 0.8.3 to 2.6.0

The Selenium code were upgraded removing the selenium folder content and replacing it with
the selenium-server-2.6.0.jar content provided by the follow url:

  http://code.google.com/p/selenium/downloads/detail?name=selenium-server-2.6.0.zip&can=2&q=
parent 804743ab
Copyright 2004 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Manifest-Version: 1.0 Manifest-Version: 1.0
Archiver-Version: Plexus Archiver Ant-Version: Apache Ant 1.8.1
Created-By: Apache Maven Created-By: 1.6.0-google-v4-54639-21652009 (Sun Microsystems Inc.)
Built-By: openqa Main-Class: org.openqa.grid.selenium.GridLauncher
Build-Jdk: 1.6.0
Name: Build-Info
Selenium-Version: 2.6.0
Selenium-Revision: 13840
Selenium-Build-Time: 2011-09-13 14:55:47
#Generated by Maven
#Thu Sep 20 01:04:44 PDT 2007
version=0.8.3
groupId=org.openqa.selenium.core
artifactId=selenium-core
selenium.core.version=0.8.3 selenium.rc.version=2.6
selenium.core.revision=1879 selenium.rc.revision=.0
\ No newline at end of file selenium.core.version=2.6
selenium.core.revision=.0
body { body {
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
font-family: Verdana, Arial, Helvetica, sans-serif; font-family: Verdana, Arial, Helvetica, sans-serif;
color: #000; color: #000;
font-size: 0.8em; font-size: 0.8em;
background-color: #fff; background-color: #fff;
} }
a:link, a:visited { a:link, a:visited {
color: #00F; color: #00F;
} }
a:hover { a:hover {
color: #F00; color: #F00;
} }
h1 { h1 {
font-size: 1.2em; font-size: 1.2em;
font-weight: bold; font-weight: bold;
color: #039; color: #039;
font-family: Verdana, Arial, Helvetica, sans-serif; font-family: Verdana, Arial, Helvetica, sans-serif;
} }
h2 { h2 {
font-weight: bold; font-weight: bold;
color: #039; color: #039;
font-family: Verdana, Arial, Helvetica, sans-serif; font-family: Verdana, Arial, Helvetica, sans-serif;
} }
h3 { h3 {
font-weight: bold; font-weight: bold;
color: #039; color: #039;
text-decoration: underline; text-decoration: underline;
font-family: Verdana, Arial, Helvetica, sans-serif; font-family: Verdana, Arial, Helvetica, sans-serif;
} }
h4 { h4 {
font-weight: bold; font-weight: bold;
color: #039; color: #039;
font-family: Verdana, Arial, Helvetica, sans-serif; font-family: Verdana, Arial, Helvetica, sans-serif;
} }
.jsUnitTestResultSuccess { .jsUnitTestResultSuccess {
color: #000; color: #000;
} }
.jsUnitTestResultNotSuccess { .jsUnitTestResultNotSuccess {
color: #F00; color: #F00;
} }
\ No newline at end of file
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>emptyPage</title> <title>emptyPage</title>
</head> </head>
<body> <body>
</body> </body>
</html> </html>
function jsUnitTestSuite() { function jsUnitTestSuite() {
this.isjsUnitTestSuite = true; this.isjsUnitTestSuite = true;
this.testPages = Array(); this.testPages = Array();
this.pageIndex = 0; this.pageIndex = 0;
} }
jsUnitTestSuite.prototype.addTestPage = function (pageName) jsUnitTestSuite.prototype.addTestPage = function (pageName)
{ {
this.testPages[this.testPages.length] = pageName; this.testPages[this.testPages.length] = pageName;
} }
jsUnitTestSuite.prototype.addTestSuite = function (suite) jsUnitTestSuite.prototype.addTestSuite = function (suite)
{ {
for (var i = 0; i < suite.testPages.length; i++) for (var i = 0; i < suite.testPages.length; i++)
this.addTestPage(suite.testPages[i]); this.addTestPage(suite.testPages[i]);
} }
jsUnitTestSuite.prototype.containsTestPages = function () jsUnitTestSuite.prototype.containsTestPages = function ()
{ {
return this.testPages.length > 0; return this.testPages.length > 0;
} }
jsUnitTestSuite.prototype.nextPage = function () jsUnitTestSuite.prototype.nextPage = function ()
{ {
return this.testPages[this.pageIndex++]; return this.testPages[this.pageIndex++];
} }
jsUnitTestSuite.prototype.hasMorePages = function () jsUnitTestSuite.prototype.hasMorePages = function ()
{ {
return this.pageIndex < this.testPages.length; return this.pageIndex < this.testPages.length;
} }
jsUnitTestSuite.prototype.clone = function () jsUnitTestSuite.prototype.clone = function ()
{ {
var clone = new jsUnitTestSuite(); var clone = new jsUnitTestSuite();
clone.testPages = this.testPages; clone.testPages = this.testPages;
return clone; return clone;
} }
if (xbDEBUG.on) if (xbDEBUG.on)
{ {
xbDebugTraceObject('window', 'jsUnitTestSuite'); xbDebugTraceObject('window', 'jsUnitTestSuite');
} }
var TRACE_LEVEL_NONE = new JsUnitTraceLevel(0, null); var TRACE_LEVEL_NONE = new JsUnitTraceLevel(0, null);
var TRACE_LEVEL_WARNING = new JsUnitTraceLevel(1, "#FF0000"); var TRACE_LEVEL_WARNING = new JsUnitTraceLevel(1, "#FF0000");
var TRACE_LEVEL_INFO = new JsUnitTraceLevel(2, "#009966"); var TRACE_LEVEL_INFO = new JsUnitTraceLevel(2, "#009966");
var TRACE_LEVEL_DEBUG = new JsUnitTraceLevel(3, "#0000FF"); var TRACE_LEVEL_DEBUG = new JsUnitTraceLevel(3, "#0000FF");
function JsUnitTracer(testManager) { function JsUnitTracer(testManager) {
this._testManager = testManager; this._testManager = testManager;
this._traceWindow = null; this._traceWindow = null;
this.popupWindowsBlocked = false; this.popupWindowsBlocked = false;
} }
JsUnitTracer.prototype.initialize = function() { JsUnitTracer.prototype.initialize = function() {
if (this._traceWindow != null && top.testManager.closeTraceWindowOnNewRun.checked) if (this._traceWindow != null && top.testManager.closeTraceWindowOnNewRun.checked)
this._traceWindow.close(); this._traceWindow.close();
this._traceWindow = null; this._traceWindow = null;
} }
JsUnitTracer.prototype.finalize = function() { JsUnitTracer.prototype.finalize = function() {
if (this._traceWindow != null) { if (this._traceWindow != null) {
this._traceWindow.document.write('<\/body>\n<\/html>'); this._traceWindow.document.write('<\/body>\n<\/html>');
this._traceWindow.document.close(); this._traceWindow.document.close();
} }
} }
JsUnitTracer.prototype.warn = function() { JsUnitTracer.prototype.warn = function() {
this._trace(arguments[0], arguments[1], TRACE_LEVEL_WARNING); this._trace(arguments[0], arguments[1], TRACE_LEVEL_WARNING);
} }
JsUnitTracer.prototype.inform = function() { JsUnitTracer.prototype.inform = function() {
this._trace(arguments[0], arguments[1], TRACE_LEVEL_INFO); this._trace(arguments[0], arguments[1], TRACE_LEVEL_INFO);
} }
JsUnitTracer.prototype.debug = function() { JsUnitTracer.prototype.debug = function() {
this._trace(arguments[0], arguments[1], TRACE_LEVEL_DEBUG); this._trace(arguments[0], arguments[1], TRACE_LEVEL_DEBUG);
} }
JsUnitTracer.prototype._trace = function(message, value, traceLevel) { JsUnitTracer.prototype._trace = function(message, value, traceLevel) {
if (!top.shouldSubmitResults() && this._getChosenTraceLevel().matches(traceLevel)) { if (!top.shouldSubmitResults() && this._getChosenTraceLevel().matches(traceLevel)) {
var traceString = message; var traceString = message;
if (value) if (value)
traceString += ': ' + value; traceString += ': ' + value;
var prefix = this._testManager.getTestFileName() + ":" + var prefix = this._testManager.getTestFileName() + ":" +
this._testManager.getTestFunctionName() + " - "; this._testManager.getTestFunctionName() + " - ";
this._writeToTraceWindow(prefix, traceString, traceLevel); this._writeToTraceWindow(prefix, traceString, traceLevel);
} }
} }
JsUnitTracer.prototype._getChosenTraceLevel = function() { JsUnitTracer.prototype._getChosenTraceLevel = function() {
var levelNumber = eval(top.testManager.traceLevel.value); var levelNumber = eval(top.testManager.traceLevel.value);
return traceLevelByLevelNumber(levelNumber); return traceLevelByLevelNumber(levelNumber);
} }
JsUnitTracer.prototype._writeToTraceWindow = function(prefix, traceString, traceLevel) { JsUnitTracer.prototype._writeToTraceWindow = function(prefix, traceString, traceLevel) {
var htmlToAppend = '<p class="jsUnitDefault">' + prefix + '<font color="' + traceLevel.getColor() + '">' + traceString + '</font><\/p>\n'; var htmlToAppend = '<p class="jsUnitDefault">' + prefix + '<font color="' + traceLevel.getColor() + '">' + traceString + '</font><\/p>\n';
this._getTraceWindow().document.write(htmlToAppend); this._getTraceWindow().document.write(htmlToAppend);
} }
JsUnitTracer.prototype._getTraceWindow = function() { JsUnitTracer.prototype._getTraceWindow = function() {
if (this._traceWindow == null && !top.shouldSubmitResults() && !this.popupWindowsBlocked) { if (this._traceWindow == null && !top.shouldSubmitResults() && !this.popupWindowsBlocked) {
this._traceWindow = window.open('', '', 'width=600, height=350,status=no,resizable=yes,scrollbars=yes'); this._traceWindow = window.open('', '', 'width=600, height=350,status=no,resizable=yes,scrollbars=yes');
if (!this._traceWindow) if (!this._traceWindow)
this.popupWindowsBlocked = true; this.popupWindowsBlocked = true;
else { else {
var resDoc = this._traceWindow.document; var resDoc = this._traceWindow.document;
resDoc.write('<html>\n<head>\n<link rel="stylesheet" href="css/jsUnitStyle.css">\n<title>Tracing - JsUnit<\/title>\n<head>\n<body>'); resDoc.write('<html>\n<head>\n<link rel="stylesheet" href="css/jsUnitStyle.css">\n<title>Tracing - JsUnit<\/title>\n<head>\n<body>');
resDoc.write('<h2>Tracing - JsUnit<\/h2>\n'); resDoc.write('<h2>Tracing - JsUnit<\/h2>\n');
resDoc.write('<p class="jsUnitDefault"><i>(Traces are color coded: '); resDoc.write('<p class="jsUnitDefault"><i>(Traces are color coded: ');
resDoc.write('<font color="' + TRACE_LEVEL_WARNING.getColor() + '">Warning</font> - '); resDoc.write('<font color="' + TRACE_LEVEL_WARNING.getColor() + '">Warning</font> - ');
resDoc.write('<font color="' + TRACE_LEVEL_INFO.getColor() + '">Information</font> - '); resDoc.write('<font color="' + TRACE_LEVEL_INFO.getColor() + '">Information</font> - ');
resDoc.write('<font color="' + TRACE_LEVEL_DEBUG.getColor() + '">Debug</font>'); resDoc.write('<font color="' + TRACE_LEVEL_DEBUG.getColor() + '">Debug</font>');
resDoc.write(')</i></p>'); resDoc.write(')</i></p>');
} }
} }
return this._traceWindow; return this._traceWindow;
} }
if (xbDEBUG.on) { if (xbDEBUG.on) {
xbDebugTraceObject('window', 'JsUnitTracer'); xbDebugTraceObject('window', 'JsUnitTracer');
} }
function JsUnitTraceLevel(levelNumber, color) { function JsUnitTraceLevel(levelNumber, color) {
this._levelNumber = levelNumber; this._levelNumber = levelNumber;
this._color = color; this._color = color;
} }
JsUnitTraceLevel.prototype.matches = function(anotherTraceLevel) { JsUnitTraceLevel.prototype.matches = function(anotherTraceLevel) {
return this._levelNumber >= anotherTraceLevel._levelNumber; return this._levelNumber >= anotherTraceLevel._levelNumber;
} }
JsUnitTraceLevel.prototype.getColor = function() { JsUnitTraceLevel.prototype.getColor = function() {
return this._color; return this._color;
} }
function traceLevelByLevelNumber(levelNumber) { function traceLevelByLevelNumber(levelNumber) {
switch (levelNumber) { switch (levelNumber) {
case 0: return TRACE_LEVEL_NONE; case 0: return TRACE_LEVEL_NONE;
case 1: return TRACE_LEVEL_WARNING; case 1: return TRACE_LEVEL_WARNING;
case 2: return TRACE_LEVEL_INFO; case 2: return TRACE_LEVEL_INFO;
case 3: return TRACE_LEVEL_DEBUG; case 3: return TRACE_LEVEL_DEBUG;
} }
return null; return null;
} }
\ No newline at end of file
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title> <title></title>
<link rel="stylesheet" type="text/css" href="../css/jsUnitStyle.css"> <link rel="stylesheet" type="text/css" href="../css/jsUnitStyle.css">
</head> </head>
<body> <body>
<div id="content"><b>Errors:</b> 0</div> <div id="content"><b>Errors:</b> 0</div>
</body> </body>
</html> </html>
\ No newline at end of file
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title> <title></title>
<link rel="stylesheet" type="text/css" href="../css/jsUnitStyle.css"> <link rel="stylesheet" type="text/css" href="../css/jsUnitStyle.css">
</head> </head>
<body> <body>
<div id="content"><b>Failures:</b> 0</div> <div id="content"><b>Failures:</b> 0</div>
</body> </body>
</html> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title> <title></title>
<link rel="stylesheet" type="text/css" href="../css/jsUnitStyle.css"> <link rel="stylesheet" type="text/css" href="../css/jsUnitStyle.css">
</head> </head>
<body> <body>
<div id="content"><b>Runs:</b> 0</div> <div id="content"><b>Runs:</b> 0</div>
</body> </body>
</html> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title> <title></title>
</head> </head>
<frameset cols="200,190,*" border="0"> <frameset cols="200,190,*" border="0">
<frame name="mainCountsRuns" src="main-counts-runs.html" scrolling="no" frameborder="0"> <frame name="mainCountsRuns" src="main-counts-runs.html" scrolling="no" frameborder="0">
<frame name="mainCountsErrors" src="main-counts-errors.html" scrolling="no" frameborder="0"> <frame name="mainCountsErrors" src="main-counts-errors.html" scrolling="no" frameborder="0">
<frame name="mainCountsFailures" src="main-counts-failures.html" scrolling="no" frameborder="0"> <frame name="mainCountsFailures" src="main-counts-failures.html" scrolling="no" frameborder="0">
<noframes> <noframes>
<body> <body>
<p>jsUnit uses frames in order to remove dependencies upon a browser's implementation of document.getElementById <p>jsUnit uses frames in order to remove dependencies upon a browser's implementation of document.getElementById
and HTMLElement.innerHTML.</p> and HTMLElement.innerHTML.</p>
</body> </body>
</noframes> </noframes>
</frameset> </frameset>
</html> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JsUnit main-errors.html</title> <title>JsUnit main-errors.html</title>
<link rel="stylesheet" type="text/css" href="../css/jsUnitStyle.css"> <link rel="stylesheet" type="text/css" href="../css/jsUnitStyle.css">
</head> </head>
<body> <body>
<hr> <hr>
<form name="testRunnerForm" action="javascript:top.testManager.showMessageForSelectedProblemTest()"> <form name="testRunnerForm" action="javascript:top.testManager.showMessageForSelectedProblemTest()">
<p>Errors and failures:&nbsp;</p> <p>Errors and failures:&nbsp;</p>
<select size="5" ondblclick="top.testManager.showMessageForSelectedProblemTest()" name="problemsList"> <select size="5" ondblclick="top.testManager.showMessageForSelectedProblemTest()" name="problemsList">
<option>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option> <option>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
</select> </select>
<br> <br>
<input type="button" value="Show selected" onclick="top.testManager.showMessageForSelectedProblemTest()"> <input type="button" value="Show selected" onclick="top.testManager.showMessageForSelectedProblemTest()">
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<input type="button" value="Show all" onclick="top.testManager.showMessagesForAllProblemTests()"> <input type="button" value="Show all" onclick="top.testManager.showMessagesForAllProblemTests()">
</form> </form>
</body> </body>
</html> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html> <html>
<head> <head>
<title>jsUnit Main Frame</title> <title>jsUnit Main Frame</title>
</head> </head>
<frameset rows="230,30,30,30,0,*" border="0">> <frameset rows="230,30,30,30,0,*" border="0">>
<frame name="mainData" src="main-data.html" scrolling="no" frameborder="0"> <frame name="mainData" src="main-data.html" scrolling="no" frameborder="0">
<frame name="mainStatus" src="main-status.html" scrolling="no" frameborder="0"> <frame name="mainStatus" src="main-status.html" scrolling="no" frameborder="0">
<frame name="mainProgress" src="main-progress.html" scrolling="no" frameborder="0"> <frame name="mainProgress" src="main-progress.html" scrolling="no" frameborder="0">
<frame name="mainCounts" src="main-counts.html" scrolling="no" frameborder="0"> <frame name="mainCounts" src="main-counts.html" scrolling="no" frameborder="0">
<frame name="mainResults" src="main-results.html" scrolling="no" frameborder="0"> <frame name="mainResults" src="main-results.html" scrolling="no" frameborder="0">
<frame name="mainErrors" src="main-errors.html" scrolling="no" frameborder="0"> <frame name="mainErrors" src="main-errors.html" scrolling="no" frameborder="0">
<noframes> <noframes>
<body> <body>
<p>Sorry, JsUnit requires frames.</p> <p>Sorry, JsUnit requires frames.</p>
</body> </body>
</noframes> </noframes>
</frameset> </frameset>
</html> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>jsUnit External Data Document loader</title> <title>jsUnit External Data Document loader</title>
<script language="JavaScript" type="text/javascript"> <script language="JavaScript" type="text/javascript">
var loadStatus; var loadStatus;
var callback = function () { var callback = function () {
}; };
function buffer() { function buffer() {
return window.frames.documentBuffer; return window.frames.documentBuffer;
} }
function load(uri) { function load(uri) {
loadStatus = 'loading'; loadStatus = 'loading';
buffer().document.location.href = uri; buffer().document.location.href = uri;
} }
function loadComplete() { function loadComplete() {
top.xbDEBUG.dump('main-loader.html:loadComplete(): loadStatus = ' + loadStatus + ' href=' + buffer().document.location.href); top.xbDEBUG.dump('main-loader.html:loadComplete(): loadStatus = ' + loadStatus + ' href=' + buffer().document.location.href);
if (loadStatus == 'loading') { if (loadStatus == 'loading') {
loadStatus = 'complete'; loadStatus = 'complete';
callback(); callback();
callback = function () { callback = function () {
}; };
} }
} }
if (top.xbDEBUG.on) { if (top.xbDEBUG.on) {
var scopeName = 'main_loader_' + (new Date()).getTime(); var scopeName = 'main_loader_' + (new Date()).getTime();
top[scopeName] = window; top[scopeName] = window;
top.xbDebugTraceFunction(scopeName, 'buffer'); top.xbDebugTraceFunction(scopeName, 'buffer');
top.xbDebugTraceFunction(scopeName, 'load'); top.xbDebugTraceFunction(scopeName, 'load');
top.xbDebugTraceFunction(scopeName, 'loadComplete'); top.xbDebugTraceFunction(scopeName, 'loadComplete');
} }
</script> </script>
</head> </head>
<body> <body>
<iframe name="documentBuffer" onload="loadComplete()"></iframe> <iframe name="documentBuffer" onload="loadComplete()"></iframe>
</body> </body>
</html> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JsUnit main-progress.html</title> <title>JsUnit main-progress.html</title>
<link rel="stylesheet" type="text/css" href="../css/jsUnitStyle.css"> <link rel="stylesheet" type="text/css" href="../css/jsUnitStyle.css">
</head> </head>
<body> <body>
<table width="375" cellpadding="0" cellspacing="0" border="0" summary="Test progress indicator"> <table width="375" cellpadding="0" cellspacing="0" border="0" summary="Test progress indicator">
<tr> <tr>
<td width="65" valign="top"><b>Progress:</b></td> <td width="65" valign="top"><b>Progress:</b></td>
<td width="300" height="14" valign="middle"> <td width="300" height="14" valign="middle">
<table width="300" cellpadding="0" cellspacing="0" border="1" summary="Progress image"> <table width="300" cellpadding="0" cellspacing="0" border="1" summary="Progress image">
<tr> <tr>
<td width="300" height="14" valign="top"><img name="progress" height="14" width="0" <td width="300" height="14" valign="top"><img name="progress" height="14" width="0"
alt="progress image" src="../images/green.gif"></td> alt="progress image" src="../images/green.gif"></td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
</body> </body>
</html> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JsUnit main-results.html</title> <title>JsUnit main-results.html</title>
<link rel="stylesheet" type="text/css" href="../css/jsUnitStyle.css"> <link rel="stylesheet" type="text/css" href="../css/jsUnitStyle.css">
</head> </head>
<body> <body>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
var DEFAULT_SUBMIT_WEBSERVER = "localhost:8080"; var DEFAULT_SUBMIT_WEBSERVER = "localhost:8080";
function submitUrlFromSpecifiedUrl() { function submitUrlFromSpecifiedUrl() {
var result = ""; var result = "";
var specifiedUrl = top.getSpecifiedResultUrl(); var specifiedUrl = top.getSpecifiedResultUrl();
if (specifiedUrl.indexOf("http://") != 0) if (specifiedUrl.indexOf("http://") != 0)
result = "http://"; result = "http://";
result += specifiedUrl; result += specifiedUrl;
return result; return result;
} }
function submitUrlFromTestRunnerLocation() { function submitUrlFromTestRunnerLocation() {
var result = "http://"; var result = "http://";
var webserver = top.getWebserver(); var webserver = top.getWebserver();
if (webserver == null) // running over file:/// if (webserver == null) // running over file:///
webserver = DEFAULT_SUBMIT_WEBSERVER; webserver = DEFAULT_SUBMIT_WEBSERVER;
result += webserver; result += webserver;
result += "/jsunit/acceptor"; result += "/jsunit/acceptor";
return result; return result;
} }
var submitUrl = ""; var submitUrl = "";
if (top.wasResultUrlSpecified()) { if (top.wasResultUrlSpecified()) {
submitUrl = submitUrlFromSpecifiedUrl(); submitUrl = submitUrlFromSpecifiedUrl();
} else { } else {
submitUrl = submitUrlFromTestRunnerLocation(); submitUrl = submitUrlFromTestRunnerLocation();
} }
var formString = "<form name=\"resultsForm\" action=\"" + submitUrl + "\" method=\"post\" target=\"_top\">"; var formString = "<form name=\"resultsForm\" action=\"" + submitUrl + "\" method=\"post\" target=\"_top\">";
document.write(formString); document.write(formString);
</script> </script>
<input type="hidden" name="id"> <input type="hidden" name="id">
<input type="hidden" name="userAgent"> <input type="hidden" name="userAgent">
<input type="hidden" name="jsUnitVersion"> <input type="hidden" name="jsUnitVersion">
<input type="hidden" name="time"> <input type="hidden" name="time">
<input type="hidden" name="url"> <input type="hidden" name="url">
<input type="hidden" name="cacheBuster"> <input type="hidden" name="cacheBuster">
<select size="5" name="testCases" multiple></select> <select size="5" name="testCases" multiple></select>
</form> </form>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function populateHeaderFields(id, userAgent, jsUnitVersion, baseURL) { function populateHeaderFields(id, userAgent, jsUnitVersion, baseURL) {
document.resultsForm.id.value = id; document.resultsForm.id.value = id;
document.resultsForm.userAgent.value = userAgent; document.resultsForm.userAgent.value = userAgent;
document.resultsForm.jsUnitVersion.value = jsUnitVersion; document.resultsForm.jsUnitVersion.value = jsUnitVersion;
document.resultsForm.url.value = baseURL; document.resultsForm.url.value = baseURL;
document.resultsForm.cacheBuster.value = new Date().getTime(); document.resultsForm.cacheBuster.value = new Date().getTime();
} }
function submitResults() { function submitResults() {
var testCasesField = document.resultsForm.testCases; var testCasesField = document.resultsForm.testCases;
for (var i = 0; i < testCasesField.length; i++) { for (var i = 0; i < testCasesField.length; i++) {
testCasesField[i].selected = true; testCasesField[i].selected = true;
} }
document.resultsForm.submit(); document.resultsForm.submit();
} }
</script> </script>
</body> </body>
</html> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JsUnit main-status.html</title> <title>JsUnit main-status.html</title>
<link rel="stylesheet" type="text/css" href="../css/jsUnitStyle.css"> <link rel="stylesheet" type="text/css" href="../css/jsUnitStyle.css">
</head> </head>
<body> <body>
<div id="content"><b>Status:</b> (Idle)</div> <div id="content"><b>Status:</b> (Idle)</div>
</body> </body>
</html> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JsUnit Test Container</title> <title>JsUnit Test Container</title>
</head> </head>
<frameset rows="0, *" border="0"> <frameset rows="0, *" border="0">
<frame name="testContainerController" src="testContainerController.html"> <frame name="testContainerController" src="testContainerController.html">
<frame name="testFrame" src="emptyPage.html"> <frame name="testFrame" src="emptyPage.html">
<noframes> <noframes>
<body> <body>
<p>Sorry, JsUnit requires frames.</p> <p>Sorry, JsUnit requires frames.</p>
</body> </body>
</noframes> </noframes>
</frameset> </frameset>
</html> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JsUnit Test Container Controller</title> <title>JsUnit Test Container Controller</title>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
var containerReady = false; var containerReady = false;
function init() { function init() {
containerReady = true; containerReady = true;
} }
function isPageLoaded() { function isPageLoaded() {
if (!containerReady) if (!containerReady)
return false; return false;
var isTestPageLoaded = false; var isTestPageLoaded = false;
try { try {
// attempt to access the var isTestPageLoaded in the testFrame // attempt to access the var isTestPageLoaded in the testFrame
if (typeof(top.testManager.containerTestFrame.isTestPageLoaded) != 'undefined') { if (typeof(top.testManager.containerTestFrame.isTestPageLoaded) != 'undefined') {
isTestPageLoaded = top.testManager.containerTestFrame.isTestPageLoaded; isTestPageLoaded = top.testManager.containerTestFrame.isTestPageLoaded;
} }
// ok, if the above did not throw an exception, then the // ok, if the above did not throw an exception, then the
// variable is defined. If the onload has not fired in the // variable is defined. If the onload has not fired in the
// testFrame then isTestPageLoaded is still false. Otherwise // testFrame then isTestPageLoaded is still false. Otherwise
// the testFrame has set it to true // the testFrame has set it to true
} }
catch (e) { catch (e) {
// an error occured while attempting to access the isTestPageLoaded // an error occured while attempting to access the isTestPageLoaded
// in the testFrame, therefore the testFrame has not loaded yet // in the testFrame, therefore the testFrame has not loaded yet
isTestPageLoaded = false; isTestPageLoaded = false;
} }
return isTestPageLoaded; return isTestPageLoaded;
} }
function isContainerReady() { function isContainerReady() {
return containerReady; return containerReady;
} }
function setNotReady() { function setNotReady() {
try { try {
// attempt to set the isTestPageLoaded variable // attempt to set the isTestPageLoaded variable
// in the test frame to false. // in the test frame to false.
top.testManager.containerTestFrame.isTestPageLoaded = false; top.testManager.containerTestFrame.isTestPageLoaded = false;
} }
catch (e) { catch (e) {
// testFrame.isTestPageLoaded not available... ignore // testFrame.isTestPageLoaded not available... ignore
} }
} }
function setTestPage(testPageURI) { function setTestPage(testPageURI) {
setNotReady(); setNotReady();
top.jsUnitParseParms(testPageURI); top.jsUnitParseParms(testPageURI);
testPageURI = appendCacheBusterParameterTo(testPageURI); testPageURI = appendCacheBusterParameterTo(testPageURI);
try { try {
top.testManager.containerTestFrame.location.href = testPageURI; top.testManager.containerTestFrame.location.href = testPageURI;
} catch (e) { } catch (e) {
} }
} }
function appendCacheBusterParameterTo(testPageURI) { function appendCacheBusterParameterTo(testPageURI) {
if (testPageURI.indexOf("?") == -1) if (testPageURI.indexOf("?") == -1)
testPageURI += "?"; testPageURI += "?";
else else
testPageURI += "&"; testPageURI += "&";
testPageURI += "cacheBuster="; testPageURI += "cacheBuster=";
testPageURI += new Date().getTime(); testPageURI += new Date().getTime();
return testPageURI; return testPageURI;
} }
</script> </script>
</head> </head>
<body onload="init()"> <body onload="init()">
Test Container Controller Test Container Controller
</body> </body>
</html> </html>
\ No newline at end of file
rake_file(
name = "jsunit",
src = ".")
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
...@@ -67,7 +67,7 @@ Copyright 2004 ThoughtWorks, Inc ...@@ -67,7 +67,7 @@ Copyright 2004 ThoughtWorks, Inc
} }
function go() { function go() {
if (!browserVersion.isHTA) return true; if (!browserVersion.isHTA && !browserVersion.isChrome) return true;
var inputs = document.getElementsByTagName("input"); var inputs = document.getElementsByTagName("input");
var queryString = ""; var queryString = "";
for (var i = 0; i < inputs.length; i++) { for (var i = 0; i < inputs.length; i++) {
......
...@@ -35,16 +35,16 @@ Copyright 2005 ThoughtWorks, Inc ...@@ -35,16 +35,16 @@ Copyright 2005 ThoughtWorks, Inc
<td></td> <td></td>
<td class="selenium splash"> <td class="selenium splash">
<img src="selenium-logo.png" align="right"> <a href="http://seleniumhq.org" title="Visit the Selenium website"><img border="0" align="right" src="selenium-logo.png"></a>
<h1>Selenium</h1> <h1>Selenium</h1>
<h2>by <a href="http://www.thoughtworks.com">ThoughtWorks</a> and friends</h2> <h2>by <a href="http://www.thoughtworks.com">ThoughtWorks</a> and <a href="http://seleniumhq.org/about/contributors.html">friends</a></h2>
<p> <p>
For more information on Selenium, visit For more information on Selenium, visit
<pre> <pre>
<a href="http://selenium.openqa.org" target="_blank">http://selenium.openqa.org</a> <a href="http://seleniumhq.org" target="_blank">http://seleniumhq.org</a>
</pre> </pre>
</td> </td>
......
This diff is collapsed.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>DOM Viewer</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="domviewer.css"/>
<script type="text/javascript" src="selenium-domviewer.js"></script>
</head>
<body onload="loadDomViewer();">
<h3>DOM Viewer</h3>
<p> This page is generated using JavaScript. If you see this text, your
browser doesn't support JavaScript.</p>
</body>
</html>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
content readystate jar:chrome/readystate.jar!/content/ xpcnativewrappers=no
overlay chrome://browser/content/browser.xul chrome://readystate/content/overlay.xul
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment