Author: dsvyatobatsko
Date: 2008-07-11 12:54:10 -0400 (Fri, 11 Jul 2008)
New Revision: 9549
Modified:
trunk/test-applications/seleniumTest/src/main/webapp/layout/layout.xhtml
trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxMediaOutput/ajaxMediaOutputTest.xhtml
Log:
moved js test event methods to layout page
Modified: trunk/test-applications/seleniumTest/src/main/webapp/layout/layout.xhtml
===================================================================
--- trunk/test-applications/seleniumTest/src/main/webapp/layout/layout.xhtml 2008-07-11
16:29:21 UTC (rev 9548)
+++ trunk/test-applications/seleniumTest/src/main/webapp/layout/layout.xhtml 2008-07-11
16:54:10 UTC (rev 9549)
@@ -55,7 +55,21 @@
o.style.fontWeight = '';
}
}
-
+
+ //Marks ${element.id}_${resultElemIdPostfix} result element as passed test
+ //if resultElemIdPostfix is not specified ${element.id}_result will be used instead
+ function testEvent(element, resultElemIdPostfix) {
+ resultElemIdPostfix = resultElemIdPostfix || 'result';
+ element = document.getElementById(element.id + "_" + resultElemIdPostfix);
+ element.style.cssText = 'background-color: green';
+ element.innerHTML = 'Passed';
+ }
+
+ function resetEventTestResult(id) {
+ element = document.getElementById(id);
+ element.style.cssText = 'background-color: white';
+ element.innerHTML = 'No';
+ }
</script>
<style type="text/css">
<ui:insert name="style"/>
Modified:
trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxMediaOutput/ajaxMediaOutputTest.xhtml
===================================================================
(Binary files differ)
Show replies by date