Permalink
Browse files

update selenium lib to current 1.0.3

  • Loading branch information...
1 parent 560814b commit 885e340719ab1a8a71643ee0220c9fb7e8f2dc03 Jehan-Guillaume (ioguix) de Rorthais committed Mar 12, 2010
Showing with 13,653 additions and 6,477 deletions.
  1. +2 −2 tests/selenium/selenium-lib/VERSION.txt
  2. +0 −54 tests/selenium/selenium-lib/coding-conventions.txt
  3. +18 −27 tests/selenium/selenium-lib/core/RemoteRunner.html
  4. +3 −3 tests/selenium/selenium-lib/core/TestPrompt.html
  5. +8 −10 tests/selenium/selenium-lib/core/TestRunner.hta
  6. +8 −10 tests/selenium/selenium-lib/core/TestRunner.html
  7. +0 −298 tests/selenium/selenium-lib/core/domviewer/domviewer.css
  8. +0 −16 tests/selenium/selenium-lib/core/domviewer/domviewer.html
  9. +0 −205 tests/selenium/selenium-lib/core/domviewer/selenium-domviewer.js
  10. +309 −35 tests/selenium/selenium-lib/core/iedoc-core.xml
  11. +396 −35 tests/selenium/selenium-lib/core/iedoc.xml
  12. +91 −0 tests/selenium/selenium-lib/core/lib/snapsie.js
  13. +765 −36 tests/selenium/selenium-lib/core/scripts/htmlutils.js
  14. +2 −2 tests/selenium/selenium-lib/core/scripts/injection.html
  15. +0 −70 tests/selenium/selenium-lib/core/scripts/js2html.js
  16. +0 −175 tests/selenium/selenium-lib/core/scripts/narcissus-defs.js
  17. +0 −1,054 tests/selenium/selenium-lib/core/scripts/narcissus-exec.js
  18. +0 −1,003 tests/selenium/selenium-lib/core/scripts/narcissus-parse.js
  19. +0 −63 tests/selenium/selenium-lib/core/scripts/se2html.js
  20. +892 −61 tests/selenium/selenium-lib/core/scripts/selenium-api.js
  21. +319 −189 tests/selenium/selenium-lib/core/scripts/selenium-browserbot.js
  22. +4 −1 tests/selenium/selenium-lib/core/scripts/selenium-browserdetect.js
  23. +8 −6 tests/selenium/selenium-lib/core/scripts/selenium-commandhandlers.js
  24. +1 −1 tests/selenium/selenium-lib/core/scripts/selenium-executionloop.js
  25. +5 −4 tests/selenium/selenium-lib/core/scripts/selenium-logging.js
  26. +186 −62 tests/selenium/selenium-lib/core/scripts/selenium-remoterunner.js
  27. +55 −32 tests/selenium/selenium-lib/core/scripts/selenium-testrunner.js
  28. +2 −2 tests/selenium/selenium-lib/core/scripts/selenium-version.js
  29. +803 −0 tests/selenium/selenium-lib/core/scripts/ui-doc.html
  30. +1,627 −0 tests/selenium/selenium-lib/core/scripts/ui-element.js
  31. +979 −0 tests/selenium/selenium-lib/core/scripts/ui-map-sample.js
  32. +18 −6 tests/selenium/selenium-lib/core/selenium.css
  33. +566 −428 tests/selenium/selenium-lib/core/xpath/dom.js
  34. +2,816 −0 tests/selenium/selenium-lib/core/xpath/javascript-xpath-0.1.11.js
  35. +0 −252 tests/selenium/selenium-lib/core/xpath/misc.js
  36. +549 −0 tests/selenium/selenium-lib/core/xpath/util.js
  37. +149 −0 tests/selenium/selenium-lib/core/xpath/xmltoken.js
  38. +2,481 −2,223 tests/selenium/selenium-lib/core/xpath/xpath.js
  39. +0 −63 tests/selenium/selenium-lib/index.html
  40. +0 −9 tests/selenium/selenium-lib/install-readme.txt
  41. +591 −40 tests/selenium/selenium-lib/reference.html
@@ -1,2 +1,2 @@
-selenium.core.version=0.8.3
-selenium.core.revision=1879
+selenium.core.version=@VERSION@
+selenium.core.revision=@REVISION@
@@ -1,54 +0,0 @@
- Coding standards for Selenium Core Javascript code
- --------------------------------------------------
-
- Here is a set of conventions agreed by the active Selenium Core
- developers at ThoughtWorks. Please stick to these guidelines when
- working on the Selenium Core code-base.
-
-Whitespace: we use spaces, NOT TABS. Indent in 4-space increments.
-
-Braces: we place open-braces on the same line as the associated keyword,
- for example:
-
- if (command.isBreakpoint) {
- this.pause();
- } else {
- window.setTimeout(this.resume.bind(this), delay);
- }
-
-Encapsulation: we prefer to encapsulate functions and variables inside
- objects, where possible.
-
-Variable declarations: declare variables (using "var") ... even if they're
- "global".
-
-Class definitions: we're shifting to "prototype.js" style for
- definition of classes, e.g.
-
- var MyClass = Class.create();
- Object.extend(MyClass.prototype, {
-
- initialize: function() {
- // ... constructor code ...
- },
-
- doStuff: function() {
- // ... method body ...
- }
-
- });
-
-'Private' functions/properties: we simulate "private" properties by
- prepended the name with an underscore ("_"), e.g.
-
- _resumeAfterDelay : function() {
- // ...etc...
- },
-
-Element addressing: use "$(id)" rather than
- "document.getElementById('id')".
-
-Timeout functions: pass function objects to setTimeout(), rather than
- strings, e.g.
-
- window.setTimeout(this.resume.bind(this), delay);
@@ -24,7 +24,9 @@
<script type="text/javascript" src="scripts/xmlextras.js"></script>
<script language="JavaScript" type="text/javascript" src="lib/prototype.js"></script>
<script language="JavaScript" type="text/javascript" src="lib/cssQuery/cssQuery-p.js"></script>
+<script language="JavaScript" type="text/javascript" src="lib/snapsie.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/htmlutils.js"></script>
+<script language="JavaScript" type="text/javascript" src="scripts/ui-element.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/selenium-browserdetect.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/selenium-browserbot.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/find_matching_child.js"></script>
@@ -34,18 +36,13 @@
<script language="JavaScript" type="text/javascript" src="scripts/selenium-remoterunner.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/selenium-logging.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/selenium-version.js"></script>
-<script language="JavaScript" type="text/javascript" src="xpath/misc.js"></script>
+<script language="JavaScript" type="text/javascript" src="xpath/util.js"></script>
+<script language="JavaScript" type="text/javascript" src="xpath/xmltoken.js"></script>
<script language="JavaScript" type="text/javascript" src="xpath/dom.js"></script>
<script language="JavaScript" type="text/javascript" src="xpath/xpath.js"></script>
+<script language="JavaScript" type="text/javascript" src="xpath/javascript-xpath-0.1.11.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/user-extensions.js"></script>
<script language="JavaScript" type="text/javascript">
- function openDomViewer() {
- var autFrame = document.getElementById('selenium_myiframe');
- var autFrameDocument = getIframeDocument(autFrame);
- var domViewer = window.open(getDocumentBase(document) + 'domviewer/domviewer.html');
- domViewer.rootDocument = autFrameDocument;
- return false;
- }
function cleanUp() {
if (LOG != null) {
@@ -58,30 +55,22 @@
<body onLoad="setTimeout(function(){runSeleniumTest();},1000)" onUnload="cleanUp()">
-<table border="1" style="height: 100%;">
+<table border="1" style="height: 100%; width: 100%;">
<tr>
- <td width="50%" height="30%">
+ <td width="50%">
<table>
<tr>
- <td>
- <img src="selenium-logo.png">
- </td>
- <td>
- <h1><a href="http://selenium.thoughtworks.com" >Selenium</a> Functional Testing for Web Apps</h1>
- Open Source From <a href="http://www.thoughtworks.com">ThoughtWorks, Inc</a> and Friends
+ <td class="remoterunner">
+ <h4><a href="http://selenium.openqa.org">Selenium</a> Functional Testing for Web Apps</h4>
+ Open Source From <a href="http://selenium.openqa.org/thoughtworks-and-friends.html">ThoughtWorks and Friends</a>
<form action="">
- <br/>Slow Mode:<INPUT TYPE="CHECKBOX" NAME="FASTMODE" VALUE="YES" onmouseup="slowClicked()">
-
+ <br/>
<iframe id="seleniumLoggingFrame" name="seleniumLoggingFrame" src="Blank.html" style="border: 0; height: 0; width: 0; "></iframe>
<fieldset>
- <legend>Tools</legend>
-
- <button type="button" id="domViewer1" onclick="openDomViewer();">
- View DOM
- </button>
<button type="button" onclick="LOG.show();">
Show Log
</button>
+ <label><INPUT TYPE="CHECKBOX" NAME="FASTMODE" VALUE="YES" onmouseup="slowClicked()"> Slow Mode</label>
</fieldset>
</form>
@@ -93,13 +82,15 @@
<label id="context" name="context"></label>
</form>
</td>
- <td width="50%" height="30%">
- <b>Last Four Test Commands:</b><br/>
- <div id="commandList"></div>
+ <td width="50%" class="remoterunner">
+ <h4>Command History:</h4>
+ <form name="commands">
+ <textarea style="overflow:auto; height:8em; width:100%" wrap="off" id="commandList"></textarea>
+ </form>
</td>
</tr>
<tr>
- <td colspan="2" height="70%">
+ <td colspan="2" height="100%">
<iframe name="selenium_myiframe" id="selenium_myiframe" src="Blank.html" height="100%" width="100%"></iframe>
</td>
</tr>
@@ -67,7 +67,7 @@
}
function go() {
- if (!browserVersion.isHTA) return true;
+ if (!browserVersion.isHTA && !browserVersion.isChrome) return true;
var inputs = document.getElementsByTagName("input");
var queryString = "";
for (var i = 0; i < inputs.length; i++) {
@@ -96,7 +96,7 @@
<p>
Test Suite:
- <input id="test" name="test" size="30" value="../../TestSuite.html"/>
+ <input id="test" name="test" size="30" value="../tests/TestSuite.html"/>
</p>
<p align="center"><input type="submit" value="Go"/></p>
@@ -142,4 +142,4 @@
</form>
</body>
-</html>
+</html>
@@ -26,14 +26,13 @@ to work-around a bug in IE on Win2K whereby the HTA application doesn't function
<title>Selenium Functional Test Runner</title>
<link rel="stylesheet" type="text/css" href="selenium.css"/>
- <script type="text/javascript" src="scripts/narcissus-defs.js"></script>
- <script type="text/javascript" src="scripts/narcissus-parse.js"></script>
- <script type="text/javascript" src="scripts/narcissus-exec.js"></script>
<script type="text/javascript" src="scripts/xmlextras.js"></script>
<script language="JavaScript" type="text/javascript" src="lib/prototype.js"></script>
+ <script language="JavaScript" type="text/javascript" src="lib/cssQuery/cssQuery-p.js"></script>
+ <script language="JavaScript" type="text/javascript" src="lib/snapsie.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/htmlutils.js"></script>
+ <script language="JavaScript" type="text/javascript" src="scripts/ui-element.js"></script>
<script language="JavaScript" type="text/javascript" src="lib/scriptaculous/scriptaculous.js"></script>
- <script language="JavaScript" type="text/javascript" src="lib/cssQuery/cssQuery-p.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/selenium-browserdetect.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/selenium-browserbot.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/find_matching_child.js"></script>
@@ -43,9 +42,11 @@ to work-around a bug in IE on Win2K whereby the HTA application doesn't function
<script language="JavaScript" type="text/javascript" src="scripts/selenium-testrunner.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/selenium-logging.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/selenium-version.js"></script>
- <script language="JavaScript" type="text/javascript" src="xpath/misc.js"></script>
+ <script language="JavaScript" type="text/javascript" src="xpath/util.js"></script>
+ <script language="JavaScript" type="text/javascript" src="xpath/xmltoken.js"></script>
<script language="JavaScript" type="text/javascript" src="xpath/dom.js"></script>
<script language="JavaScript" type="text/javascript" src="xpath/xpath.js"></script>
+ <script language="JavaScript" type="text/javascript" src="xpath/javascript-xpath-0.1.11.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/user-extensions.js"></script>
<script language="JavaScript" type="text/javascript">
function openDomViewer() {
@@ -69,14 +70,14 @@ to work-around a bug in IE on Win2K whereby the HTA application doesn't function
<iframe name="testSuiteFrame" id="testSuiteFrame" src="./TestPrompt.html" application="yes"></iframe>
</td>
<td width="50%" height="30%">
- <iframe name="testFrame" id="testFrame" application="yes"></iframe>
+ <iframe name="testFrame" id="testFrame" application="yes" src="Blank.html"></iframe>
</td>
<td width="25%">
<table class="layout">
<tr class="selenium">
<th width="25%" height="1" class="header">
- <h1><a href="http://selenium.thoughtworks.com" title="The Selenium Project">Selenium</a> TestRunner
+ <h1><a href="http://selenium.openqa.org" title="The Selenium Project">Selenium</a> TestRunner
</h1>
</th>
</tr>
@@ -89,9 +90,6 @@ to work-around a bug in IE on Win2K whereby the HTA application doesn't function
<button type="button" id="runSuite" onClick="htmlTestRunner.startTestSuite();"
title="Run All tests" accesskey="a">
</button>
- <button type="button" id="runRemainTests" onClick="htmlTestRunner.runRemainTests();"
- title="Run the tests from the selected" accesskey="f">
- </button>
<button type="button" id="runSeleniumTest" onClick="htmlTestRunner.runSingleTest();"
title="Run the Selected test" accesskey="r">
</button>
@@ -26,14 +26,13 @@
<title>Selenium Functional Test Runner</title>
<link rel="stylesheet" type="text/css" href="selenium.css"/>
- <script type="text/javascript" src="scripts/narcissus-defs.js"></script>
- <script type="text/javascript" src="scripts/narcissus-parse.js"></script>
- <script type="text/javascript" src="scripts/narcissus-exec.js"></script>
<script type="text/javascript" src="scripts/xmlextras.js"></script>
<script language="JavaScript" type="text/javascript" src="lib/prototype.js"></script>
+ <script language="JavaScript" type="text/javascript" src="lib/cssQuery/cssQuery-p.js"></script>
+ <script language="JavaScript" type="text/javascript" src="lib/snapsie.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/htmlutils.js"></script>
+ <script language="JavaScript" type="text/javascript" src="scripts/ui-element.js"></script>
<script language="JavaScript" type="text/javascript" src="lib/scriptaculous/scriptaculous.js"></script>
- <script language="JavaScript" type="text/javascript" src="lib/cssQuery/cssQuery-p.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/selenium-browserdetect.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/selenium-browserbot.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/find_matching_child.js"></script>
@@ -43,9 +42,11 @@
<script language="JavaScript" type="text/javascript" src="scripts/selenium-testrunner.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/selenium-logging.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/selenium-version.js"></script>
- <script language="JavaScript" type="text/javascript" src="xpath/misc.js"></script>
+ <script language="JavaScript" type="text/javascript" src="xpath/util.js"></script>
+ <script language="JavaScript" type="text/javascript" src="xpath/xmltoken.js"></script>
<script language="JavaScript" type="text/javascript" src="xpath/dom.js"></script>
<script language="JavaScript" type="text/javascript" src="xpath/xpath.js"></script>
+ <script language="JavaScript" type="text/javascript" src="xpath/javascript-xpath-0.1.11.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/user-extensions.js"></script>
<script language="JavaScript" type="text/javascript">
function openDomViewer() {
@@ -69,14 +70,14 @@
<iframe name="testSuiteFrame" id="testSuiteFrame" src="./TestPrompt.html" application="yes"></iframe>
</td>
<td width="50%" height="30%">
- <iframe name="testFrame" id="testFrame" application="yes"></iframe>
+ <iframe name="testFrame" id="testFrame" application="yes" src="Blank.html"></iframe>
</td>
<td width="25%">
<table class="layout">
<tr class="selenium">
<th width="25%" height="1" class="header">
- <h1><a href="http://selenium.thoughtworks.com" title="The Selenium Project">Selenium</a> TestRunner
+ <h1><a href="http://selenium.openqa.org" title="The Selenium Project">Selenium</a> TestRunner
</h1>
</th>
</tr>
@@ -89,9 +90,6 @@
<button type="button" id="runSuite" onClick="htmlTestRunner.startTestSuite();"
title="Run All tests" accesskey="a">
</button>
- <button type="button" id="runRemainTests" onClick="htmlTestRunner.runRemainTests();"
- title="Run the tests from the selected" accesskey="f">
- </button>
<button type="button" id="runSeleniumTest" onClick="htmlTestRunner.runSingleTest();"
title="Run the Selected test" accesskey="r">
</button>
Oops, something went wrong.

0 comments on commit 885e340

Please sign in to comment.