From ce696b7979c8e4e7c72a5226f76442813fe144c9 Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 31 May 2006 04:38:55 +0000 Subject: remove more old selenium stuff. --- .../FunctionalTests/selenium/dom-images/butmin.gif | Bin 843 -> 0 bytes .../selenium/dom-images/butplus.gif | Bin 848 -> 0 bytes .../selenium/dom-styles/default.css | 298 ---------- .../selenium/html-xpath/carnation.jpg | Bin 4153 -> 0 bytes .../selenium/html-xpath/example.html | 75 --- .../selenium/html-xpath/html-xpath-patched.js | 657 --------------------- .../selenium/html-xpath/html-xpath.js | 610 ------------------- .../selenium/html-xpath/license.txt | 504 ---------------- .../selenium/html-xpath/rainbow.jpg | Bin 6085 -> 0 bytes .../selenium/jsmock/mock-tests.html | 205 ------- tests/FunctionalTests/selenium/jsmock/mock.js | 124 ---- 11 files changed, 2473 deletions(-) delete mode 100644 tests/FunctionalTests/selenium/dom-images/butmin.gif delete mode 100644 tests/FunctionalTests/selenium/dom-images/butplus.gif delete mode 100644 tests/FunctionalTests/selenium/dom-styles/default.css delete mode 100644 tests/FunctionalTests/selenium/html-xpath/carnation.jpg delete mode 100644 tests/FunctionalTests/selenium/html-xpath/example.html delete mode 100644 tests/FunctionalTests/selenium/html-xpath/html-xpath-patched.js delete mode 100644 tests/FunctionalTests/selenium/html-xpath/html-xpath.js delete mode 100644 tests/FunctionalTests/selenium/html-xpath/license.txt delete mode 100644 tests/FunctionalTests/selenium/html-xpath/rainbow.jpg delete mode 100644 tests/FunctionalTests/selenium/jsmock/mock-tests.html delete mode 100644 tests/FunctionalTests/selenium/jsmock/mock.js (limited to 'tests/FunctionalTests') diff --git a/tests/FunctionalTests/selenium/dom-images/butmin.gif b/tests/FunctionalTests/selenium/dom-images/butmin.gif deleted file mode 100644 index 7b7cefd5..00000000 Binary files a/tests/FunctionalTests/selenium/dom-images/butmin.gif and /dev/null differ diff --git a/tests/FunctionalTests/selenium/dom-images/butplus.gif b/tests/FunctionalTests/selenium/dom-images/butplus.gif deleted file mode 100644 index 6d68cfa9..00000000 Binary files a/tests/FunctionalTests/selenium/dom-images/butplus.gif and /dev/null differ diff --git a/tests/FunctionalTests/selenium/dom-styles/default.css b/tests/FunctionalTests/selenium/dom-styles/default.css deleted file mode 100644 index b64b2435..00000000 --- a/tests/FunctionalTests/selenium/dom-styles/default.css +++ /dev/null @@ -1,298 +0,0 @@ -/****************************************************************************** -* Defines default styles for site pages. * -******************************************************************************/ -.hidden { - display: none; -} - -img{ - display: inline; - border: none; -} - -.box{ - background: #fcfcfc; - border: 1px solid #000; - border-color: blue; - color: #000000; - margin: 10px auto; - padding: 3px; - vertical-align: bottom; -} -a { - text-decoration: none; -} - -body { - background-color: #ffffff; - color: #000000; - font-family: Arial, Helvetica, sans-serif; - font-size: 10pt; -} - -h2 { - font-size: 140%; -} - -h3 { - font-size: 120%; -} - -h4 { - font-size: 100%; -} - -pre { - font-family: Courier New, Courier, monospace; - font-size: 80%; -} - -td, th { - font-family: Arial, Helvetica, sans-serif; - font-size: 10pt; - text-align: left; - vertical-align: top; -} - -th { - font-weight: bold; - vertical-align: bottom; -} - -ul { - list-style-type: square; -} - -#demoBox { - border-color: #000000; - border-style: solid; - border-width: 1px; - padding: 8px; - width: 24em; -} - -.footer { - margin-bottom: 0px; - text-align: center; -} - -/* Boxed table styles */ - -table.boxed { - border-spacing: 2px; - empty-cells: hide; -} - -td.boxed, th.boxed, th.boxedHeader { - background-color: #ffffff; - border-color: #000000; - border-style: solid; - border-width: 1px; - color: #000000; - padding: 2px; - padding-left: 8px; - padding-right: 8px; -} - -th.boxed { - background-color: #c0c0c0; -} - -th.boxedHeader { - background-color: #808080; - color: #ffffff; -} - -a.object { - color: #0000ff; -} - -li { - white-space: nowrap; -} - -ul { - list-style-type: square; - margin-left: 0px; - padding-left: 1em; -} - -.boxlevel1{ - background: #FFD700; -} - -.boxlevel2{ - background: #D2691E; -} - -.boxlevel3{ - background: #DCDCDC; -} - -.boxlevel4{ - background: #F5F5F5; -} - -.boxlevel5{ - background: #BEBEBE; -} - -.boxlevel6{ - background: #D3D3D3; -} - -.boxlevel7{ - background: #A9A9A9; -} - -.boxlevel8{ - background: #191970; -} - -.boxlevel9{ - background: #000080; -} - -.boxlevel10{ - background: #6495ED; -} - -.boxlevel11{ - background: #483D8B; -} - -.boxlevel12{ - background: #6A5ACD; -} - -.boxlevel13{ - background: #7B68EE; -} - -.boxlevel14{ - background: #8470FF; -} - -.boxlevel15{ - background: #0000CD; -} - -.boxlevel16{ - background: #4169E1; -} - -.boxlevel17{ - background: #0000FF; -} - -.boxlevel18{ - background: #1E90FF; -} - -.boxlevel19{ - background: #00BFFF; -} - -.boxlevel20{ - background: #87CEEB; -} - -.boxlevel21{ - background: #B0C4DE; -} - -.boxlevel22{ - background: #ADD8E6; -} - -.boxlevel23{ - background: #00CED1; -} - -.boxlevel24{ - background: #48D1CC; -} - -.boxlevel25{ - background: #40E0D0; -} - -.boxlevel26{ - background: #008B8B; -} - -.boxlevel27{ - background: #00FFFF; -} - -.boxlevel28{ - background: #E0FFFF; -} - -.boxlevel29{ - background: #5F9EA0; -} - -.boxlevel30{ - background: #66CDAA; -} - -.boxlevel31{ - background: #7FFFD4; -} - -.boxlevel32{ - background: #006400; -} - -.boxlevel33{ - background: #556B2F; -} - -.boxlevel34{ - background: #8FBC8F; -} - -.boxlevel35{ - background: #2E8B57; -} - -.boxlevel36{ - background: #3CB371; -} - -.boxlevel37{ - background: #20B2AA; -} - -.boxlevel38{ - background: #00FF7F; -} - -.boxlevel39{ - background: #7CFC00; -} - -.boxlevel40{ - background: #90EE90; -} - -.boxlevel41{ - background: #00FF00; -} - -.boxlevel41{ - background: #7FFF00; -} - -.boxlevel42{ - background: #00FA9A; -} - -.boxlevel43{ - background: #ADFF2F; -} - -.boxlevel44{ - background: #32CD32; -} \ No newline at end of file diff --git a/tests/FunctionalTests/selenium/html-xpath/carnation.jpg b/tests/FunctionalTests/selenium/html-xpath/carnation.jpg deleted file mode 100644 index 6b1e16b3..00000000 Binary files a/tests/FunctionalTests/selenium/html-xpath/carnation.jpg and /dev/null differ diff --git a/tests/FunctionalTests/selenium/html-xpath/example.html b/tests/FunctionalTests/selenium/html-xpath/example.html deleted file mode 100644 index 3d7c62af..00000000 --- a/tests/FunctionalTests/selenium/html-xpath/example.html +++ /dev/null @@ -1,75 +0,0 @@ - -
-Test Node 3: Unclosed Paragraph tag -
This page contains tests for JsMock. To see them, take a look at the source. To run them, load this file via JsUnit's testRunner.html
- - diff --git a/tests/FunctionalTests/selenium/jsmock/mock.js b/tests/FunctionalTests/selenium/jsmock/mock.js deleted file mode 100644 index 8c0b4b9f..00000000 --- a/tests/FunctionalTests/selenium/jsmock/mock.js +++ /dev/null @@ -1,124 +0,0 @@ -/* - * 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. - * - */ - -// A simple mock library for Javascript -// -// Original code by Aslak Hellesoy and Ji Wang - -Mock = function() { - this.expectedInvocations = {}; - this.expectedArgs = {}; - this.returnValues = {}; - this.attrs = []; - this.expectedProperties = {}; - - this.expects = function() { - functionName = arguments[0]; - this.expectedArgs[functionName] = []; - for(i = 1; i < arguments.length; i++) { - this.expectedArgs[functionName][i-1] = arguments[i]; - } - javascriptCode = "this." + functionName + " = function() {\n" + - " // mark this function as \"executed\"\n" + - " this.expectedInvocations[\"" + functionName + "\"] = true;\n" + - " assertEquals(\"" + functionName + ": Wrong number of arguments.\", " + this.expectedArgs[functionName].length + ", arguments.length);\n" + - " for(i = 0; i < arguments.length; i++) {\n" + - " assertEquals(this.expectedArgs[\"" + functionName + "\"][i], arguments[i]);\n" + - " };\n" + - " var returnValue = this.returnValues[\"" + functionName + "\"];\n" + - " if (returnValue && returnValue.isMockError) { throw returnValue };\n" + - " return returnValue;\n" + - "}"; - eval(javascriptCode); - // initially mark this function as "not yet executed" - this.expectedInvocations[functionName] = false; - this.attrs[this.attrs.length] = "dummy"; - return new Returner(this, functionName); - }; - - this.expectsProperty = function() { - var propertyName = arguments[0]; - if(arguments.length == 2) { - expectedPropertyValue = arguments[1]; - this.expectedProperties[propertyName] = expectedPropertyValue; - this.attrs[this.attrs.length] = "dummy"; - } else { - return new PropertySetter(this, propertyName); - } - }; - - this.verify = function() { - // loop over all expected invocations and see if they were called - for(var functionName in this.expectedInvocations) { - var wasCalled = this.expectedInvocations[functionName]; - if(!wasCalled) { - fail("Expected function not called:" + functionName); - } - } - var currentAttrs = []; - var currentAttrCount = 0; - - // verify that all expected properties are set -// for(var attr in this) { -// currentAttrs[currentAttrCount] = attr; -// currentAttrCount++; -// } -// if(this.attrs.length < currentAttrCount) { -// unexpectedAttr = currentAttrs[this.attrs.length] -// fail("Unexpected property was set: " + unexpectedAttr + "=" + eval("this." + unexpectedAttr)) -// } - - // verify that all expected properties are set with the right value -// for(var attr in this.expectedProperties) { -// if(this.expectedProperties[attr] != eval("this." + attr)) { -// fail("Expected property was not set: " + attr + "=" + this.expectedProperties[attr]) -// } -// } - }; - - var attrCount = 0; - for(var attr in this) { - this.attrs[attrCount] = attr; - attrCount++; - } -}; - -Returner = function(mock, functionName) { - this.mock = mock; - this.functionName = functionName; -}; - -Returner.prototype.returns = function(returnValue) { - this.mock.returnValues[this.functionName] = returnValue; -}; - -Returner.prototype.andThrows = function(message) { - var error = new Error(message); - error.isMockError = true; - this.mock.returnValues[this.functionName] = error; -}; - -PropertySetter = function(mock, propertyName) { - this.mock = mock; - this.propertyName = propertyName; -}; - -PropertySetter.prototype.returns = function(returnValue) { - var ref = new Object(); - ref.value = returnValue; - eval("this.mock." + this.propertyName + "=ref.value"); -}; -- cgit v1.2.3