summaryrefslogtreecommitdiff
path: root/tests/test_tools/selenium/core/SeleniumLog.html
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2013-09-22 22:39:41 +0200
committerFabio Bas <ctrlaltca@gmail.com>2013-09-22 22:39:41 +0200
commit7c65b2f40ea9242260eac5a746863f5925423861 (patch)
tree6c516057baa4356fde43f8d79517571bc8f0bfa2 /tests/test_tools/selenium/core/SeleniumLog.html
parent60c6bfa6f7caeb122cb8fa820506bdd1c54a842e (diff)
Phing: added target for phpunit+selenium
Functional tests were using an old selenium RC version. Ported them to use phpunit + selenium; next: opensauce
Diffstat (limited to 'tests/test_tools/selenium/core/SeleniumLog.html')
-rw-r--r--tests/test_tools/selenium/core/SeleniumLog.html74
1 files changed, 0 insertions, 74 deletions
diff --git a/tests/test_tools/selenium/core/SeleniumLog.html b/tests/test_tools/selenium/core/SeleniumLog.html
deleted file mode 100644
index dffa184f..00000000
--- a/tests/test_tools/selenium/core/SeleniumLog.html
+++ /dev/null
@@ -1,74 +0,0 @@
-<html>
-
-<head>
-<title>Selenium Log Console</title>
-<link id="cssLink" rel="stylesheet" href="selenium.css" />
-
-</head>
-<body id="logging-console">
-
-<script language="JavaScript">
-
-var logLevels = {
- debug: 0,
- info: 1,
- warn: 2,
- error: 3
-};
-
-function getThresholdLevel() {
- var buttons = document.getElementById('logLevelChooser').level;
- for (var i = 0; i < buttons.length; i++) {
- if (buttons[i].checked) {
- return buttons[i].value;
- }
- }
-}
-
-function setThresholdLevel(logLevel) {
- var buttons = document.getElementById('logLevelChooser').level;
- for (var i = 0; i < buttons.length; i++) {
- if (buttons[i].value==logLevel) {
- buttons[i].checked = true;
- }
- else {
- buttons[i].checked = false;
- }
- }
-}
-
-function append(message, logLevel) {
- var logLevelThreshold = getThresholdLevel();
- if (logLevels[logLevel] < logLevels[logLevelThreshold]) {
- return;
- }
- var log = document.getElementById('log');
- var newEntry = document.createElement('li');
- newEntry.className = logLevel;
- newEntry.appendChild(document.createTextNode(message));
- log.appendChild(newEntry);
- if (newEntry.scrollIntoView) {
- newEntry.scrollIntoView();
- }
-}
-
-</script>
-
-<div id="banner">
- <form id="logLevelChooser">
- <input id="level-error" type="radio" name="level"
- value="error" /><label for="level-error">Error</label>
- <input id="level-warn" type="radio" name="level"
- value="warn" /><label for="level-warn">Warn</label>
- <input id="level-info" type="radio" name="level"
- value="info" /><label for="level-info">Info</label>
- <input id="level-debug" type="radio" name="level" checked="yes"
- value="debug" /><label for="level-debug">Debug</label>
- </form>
- <h1>Selenium Log Console</h1>
-</div>
-
-<ul id="log"></ul>
-
-</body>
-</html>