Skip to content

Instantly share code, notes, and snippets.

View olleolleolle's full-sized avatar
🙌
In sunny Malmö in Sweden 🌞

Olle Jonsson olleolleolle

🙌
In sunny Malmö in Sweden 🌞
View GitHub Profile
@olleolleolle
olleolleolle / index_action_and_filename_fix.diff
Created February 7, 2010 09:26
Making the example a little more understandable to the casual user.
diff --git a/exampleProject/views/simple.js b/exampleProject/views/simple.js
index 22e2b7e..6307b2c 100644
--- a/exampleProject/views/simple.js
+++ b/exampleProject/views/simple.js
@@ -4,15 +4,30 @@ var path = require('path');
var HTTP301MovedPermanently = require('bomberjs/lib/http_responses').HTTP301MovedPermanently;
+function htmlHead () {
+ return '<html><head><title>Bomber.js example app</title></head><body>';
ollebook:eos olle$ sudo juicer install jslint
Installing JsLint 1.0 in /Users/olle/.juicer/lib/jslint
Installing dependencies
Installing Rhino 1_7R2-RC1 in /Users/olle/.juicer/lib/rhino
Downloading ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_7R2-RC1.zip
Downloading http://www.jslint.com/rhino/jslint.js
/Library/Ruby/Gems/1.8/gems/juicer-0.2.6/lib/juicer/install/jslint_installer.rb:31:in `install': undefined method `copy' for File:Class (NoMethodError)
from /Library/Ruby/Gems/1.8/gems/juicer-0.2.6/lib/juicer/command/install.rb:47:in `execute'
from /Library/Ruby/Gems/1.8/gems/juicer-0.2.6/lib/juicer/command/install.rb:37:in `each'
from /Library/Ruby/Gems/1.8/gems/juicer-0.2.6/lib/juicer/command/install.rb:37:in `execute'
@olleolleolle
olleolleolle / autocomplete_bugfix.diff
Created February 15, 2010 09:03
adding the getImageAt interface method to the autocomplete results to shut errors up
Index: ide/src/extension/components/SeleniumIDEGenericAutoCompleteSearch.js
===================================================================
--- ide/src/extension/components/SeleniumIDEGenericAutoCompleteSearch.js (revision 8344)
+++ ide/src/extension/components/SeleniumIDEGenericAutoCompleteSearch.js (working copy)
@@ -77,6 +77,13 @@
getValueAt: function(index) {
return this.result[index][0];
},
+ /**
+ * Get the image for the result at the given index
Index: Rakefile
===================================================================
--- Rakefile (revision 8354)
+++ Rakefile (working copy)
@@ -406,6 +406,7 @@
])
java_jar(:name => "selenium-ide",
+ :srcs => [],
:resources => [
Index: /Users/olle/opensource/js/selenium-read-only/common/src/js/core/selenium.css
===================================================================
--- /Users/olle/opensource/js/selenium-read-only/common/src/js/core/selenium.css (revision 8354)
+++ /Users/olle/opensource/js/selenium-read-only/common/src/js/core/selenium.css (working copy)
@@ -275,6 +275,7 @@
div.executionOptions label, div.executionOptions input {
display: block;
float: left;
+ padding-left: 5px;
}
@olleolleolle
olleolleolle / Se_IDE_TestRunner_with_adding_access_keys.diff
Created February 15, 2010 17:21
How about showing the access key to the user in the title attribute?
Index: common/src/js/core/TestRunner.html
===================================================================
--- common/src/js/core/TestRunner.html (revision 8354)
+++ common/src/js/core/TestRunner.html (working copy)
@@ -88,16 +88,16 @@
<div id="imageButtonPanel">
<button type="button" id="runSuite" onClick="htmlTestRunner.startTestSuite();"
- title="Run All tests" accesskey="a">
+ title="Run All tests [a]" accesskey="a">
Index: remote/server/src/java/org/openqa/selenium/server/SessionExtensionJsResource.java
===================================================================
--- remote/server/src/java/org/openqa/selenium/server/SessionExtensionJsResource.java (revision 8354)
+++ remote/server/src/java/org/openqa/selenium/server/SessionExtensionJsResource.java (working copy)
@@ -24,7 +24,7 @@
public SessionExtensionJsResource(String extensionJs)
throws MalformedURLException
{
- super(new URL("http://selenium.openqa.org"), null);
+ super(new URL("http://seleniumhq.org"), null);
@olleolleolle
olleolleolle / linted_the_browserbot.diff
Created February 15, 2010 18:10
general jslint work, surprise on #321
Index: common/src/js/core/scripts/selenium-browserbot.js
===================================================================
--- common/src/js/core/scripts/selenium-browserbot.js (revision 8354)
+++ common/src/js/core/scripts/selenium-browserbot.js (working copy)
@@ -100,9 +100,10 @@
};
this.isNewPageLoaded = function() {
+ var e;
if (this.pageLoadError) {
diff --git a/content/firebug/inspector.js b/content/firebug/inspector.js
index 10e349a..aa3c625 100644
--- a/content/firebug/inspector.js
+++ b/content/firebug/inspector.js
@@ -711,7 +711,8 @@ quickInfoBox =
this.prevX = null;
this.prevY = null;
qiBox = $('fbQuickInfoPanel');
- qiBox.hidePopup();
+ if (qiBox)
@olleolleolle
olleolleolle / es5array.js
Created February 23, 2010 14:17
adds ECMA-262 methods to Array prototype
/**
* Adds ECMA-262 rev. 5 methods to Array prototype, if they are missing
* Please note that the global prototypes are updated, so only use this file
* if that is acceptable, or if you're running in an iframe
*
* Please not that this file WILL NOT BE COPYRIGHTED, as it merely wraps mozilla implementation
* of JavaScript 1.6 / ECMA-262 rev. 5 methods
*
* @author Morgan Roderick - morgan@roderick.dk
*/