Restored some files deleted by the last commit.

Signed-off-by: retep998 <retep998@verizon.net>
This commit is contained in:
retep998 2013-04-22 07:12:37 -04:00
parent 73c2b32aca
commit afd37fbf8d
5 changed files with 45 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*.xpi
*.suo
*.sln

5
README.md Normal file
View File

@ -0,0 +1,5 @@
FireRecord
============
A firebug plugin which provides web automation to do automated testing or mundane tasks.
Developers: Peter Atechian, Rylan Doherty, David Westgate

9
assemble.bat Normal file
View File

@ -0,0 +1,9 @@
if exist "C:\Program Files\7-Zip\7z.exe" (
"C:\Program Files\7-Zip\7z.exe" a FireRecord.zip chrome defaults chrome.manifest install.rdf
) else if exist "C:\Program Files (x86)\7-Zip\7z.exe" (
"C:\Program Files (x86)\7-Zip\7z.exe" a FireRecord.zip chrome defaults chrome.manifest install.rdf
) else (
"C:\Program Files\WinRAR\rar.exe" a FireRecord.zip chrome defaults chrome.manifest install.rdf
)
move FireRecord.zip FireRecord.xpi
start "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" FireRecord.xpi

14
scriptapi.js Normal file
View File

@ -0,0 +1,14 @@
function script_fire_event(element, type) {
//Todo - https://developer.mozilla.org/en-US/docs/DOM/document.createEvent
if (element.fireEvent) {
element.fireEvent('on' + type);
} else {
var obj = document.createEvent('Event');
obj.initEvent(type, true, true);
element.dispatchEvent(obj);
}
}
function script_find_element(id) {
//Todo - Add parameters for rest of stuff
return document.getElementById(id);
}

14
testscript.html Normal file
View File

@ -0,0 +1,14 @@
<!doctype html>
<html>
<head>
<title>Test</title>
<script type="text/javascript" src="scriptapi.js"></script>
<script type="text/javascript">
</script>
</head>
<body>
<p><a id="foo" onclick="javascript:alert('Success!');">This will be clicked by the script</a></p>
<p><a id="bar" onclick="javascript:script_fire_event(script_find_element('foo'), 'click');">Test the script</a></p>
</body>
</html>