Skip to content

Instantly share code, notes, and snippets.

View AutomatedTester's full-sized avatar
😃
Happy to help!

David Burns AutomatedTester

😃
Happy to help!
View GitHub Profile
Index: py/selenium/webdriver/remote/webdriver.py
===================================================================
--- py/selenium/webdriver/remote/webdriver.py (revision 15812)
+++ py/selenium/webdriver/remote/webdriver.py (working copy)
@@ -39,7 +39,7 @@
"""
def __init__(self, command_executor='http://127.0.0.1:4444/wd/hub',
- desired_capabilities=None, browser_profile=None):
+ desired_capabilities=None, browser_profile=None, session_id=None):
this is a vim-gist test
language: python
python:
- 2.6
- 2.7
install: pip install pytest
script: python setup.py develop && py.test test
Index: dom.js
===================================================================
--- dom.js (revision 16201)
+++ dom.js (working copy)
@@ -708,7 +708,27 @@
if (!positiveSize(elem)) {
return false;
}
+ function isOverflowHiding(e){
+ var parent = bot.dom.getParentElement(e);
Index: test/shown_test.html
===================================================================
--- test/shown_test.html (revision 16201)
+++ test/shown_test.html (working copy)
@@ -286,6 +286,10 @@
var noscript = findElement({id: 'noscript'});
assertFalse(isShown(noscript));
}
+ function testThatItemsHiddenWithOverflowHiddenAreFalse(){
+ var target = findElement({id: 'target'});
diff --git a/dashboard.js b/dashboard.js
index 3d2b04c..90a003e 100644
--- a/dashboard.js
+++ b/dashboard.js
@@ -11,6 +11,23 @@ ddoc = {
]
};
+ddoc.validate_doc_update = function(newDoc, oldDoc, userCtx){
+ if (newDoc._deleted === true ) {
diff --git a/dashboard.js b/dashboard.js
index 3d2b04c..5c07701 100644
--- a/dashboard.js
+++ b/dashboard.js
@@ -11,6 +11,23 @@ ddoc = {
]
};
+ddoc.validate_doc_update = function(newDoc, oldDoc, userCtx){
+ if (newDoc._deleted === true && userCtx.roles.indexOf('_admin') !== -1) ) {
@AutomatedTester
AutomatedTester / getText.js
Created March 19, 2012 20:52
getText atom
function(){return function(){var g=void 0,h=!0,i=null,j=!1,k=this;
function l(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function m(a){return"string"==typeof a}function n(a,b){function c(){}c.prototype=b.prototype;a.h=b.prototype;a.prototype=new c};function o(a){var b=a.length-1;return 0<=b&&a.indexOf(" ",b)==b}function aa(a,b){for(var c=1;c<arguments.length;c++)var d=(""+arguments[c]).replace(/\$/g,"$$$$"),a=a.replace(/\%s/,d);return a}function p(a){return a.rep
@AutomatedTester
AutomatedTester / isDisplayed.js
Created March 21, 2012 20:54
is_displayed atom
function(){return function(){var g=void 0,h=!0,i=null,j=!1,k=this;
function l(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function m(a,b){function c(){}c.prototype=b.prototype;a.h=b.prototype;a.prototype=new c};function aa(a,b){for(var c=1;c<arguments.length;c++)var d=(""+arguments[c]).replace(/\$/g,"$$$$"),a=a.replace(/\%s/,d);return a}function n(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}var o={};function ba(a){return o[a]||(o[a]=(""+a).replace(/\-([a-z])/
@AutomatedTester
AutomatedTester / getAttribute.js
Created March 21, 2012 21:02
Get Attribute Atom
function(){return function(){var f=null,g=!1,h=this;
function i(a){var c=typeof a;if("object"==c)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return c;var b=Object.prototype.toString.call(a);if("[object Window]"==b)return"object";if("[object Array]"==b||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==b||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==
c&&"undefined"==typeof a.call)return"object";return c}function j(a,c){function b(){}b.prototype=c.prototype;a.f=c.prototype;a.prototype=new b};function k(a,c){for(var b=1;b<arguments.length;b++)var d=(""+arguments[b]).replace(/\$/g,"$$$$"),a=a.replace(/\%s/,d);return a}function l(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};var m,n="",o=/rv\:([^\);]+)(\)|;)/.exec(h.navigator?h.navigator.userAgent:f);m=n=o?