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
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-ff-dbg
#ac_add_options --enable-debug
ac_add_options --enable-trace-malloc
ac_add_options --enable-accessibility
ac_add_options --enable-signmar
ac_add_options --with-ccache=/usr/local/bin/ccache
ENABLE_MARIONETTE=1
# Enable parallel compiling
# HG changeset patch
# User David Burns <dburns@mozilla.com>
# Date 1365709466 -3600
# Node ID 1d472423c8a08729213fa8eb57168fccd3c44e77
# Parent dbf9ab7dec313fbe76fafcc8fcaaa7b146bbecf0
imported patch bug830197
diff --git a/testing/marionette/client/marionette/tests/unit/test_typing.py b/testing/marionette/client/marionette/tests/unit/test_typing.py
--- a/testing/marionette/client/marionette/tests/unit/test_typing.py
+++ b/testing/marionette/client/marionette/tests/unit/test_typing.py
[user]
name = AutomatedTester
email = dburns@mozilla.com
[core]
excludesfile = /Users/davidburns/.gitignore
[github]
user = AutomatedTester
[color]
diff = auto
status = auto
☁ Downloads node
> var SBView = function(){}
undefined
> SBView.prototype.shareProductToRoom = function(a,b) {console.log(a); console.log(b)}
[Function]
> SBView.prototype.shareProductToRoom("I <3", "ponies")
I <3
ponies
undefined
>
# HG changeset patch
# User David Burns <dburns@mozilla.com>
# Date 1354928718 0
# Node ID a68f803c07e399a059adbeb1c0182a991d22099b
# Parent 7a37a4baac4f70ffb2cd29f2bd6cfb69a593dceb
[mq]: bug819351
diff --git a/testing/marionette/client/marionette/tests/unit/test_import_script.py b/testing/marionette/client/marionette/tests/unit/test_import_script.py
--- a/testing/marionette/client/marionette/tests/unit/test_import_script.py
+++ b/testing/marionette/client/marionette/tests/unit/test_import_script.py
var window = gBrowser.selectedBrowser.contentWindow;
var doc = window.document;
var sandbox = new Components.utils.Sandbox(window);
sandbox.window = window;
sandbox.document = doc.wrappedJSObject ? doc.wrappedJSObject : doc;
sandbox.navigator = window.navigator;
sandbox.__webdriverParams = [{"foo": "bar", "goo":[1,2]}];
try {
var scriptSrc = 'with(window) { ' +
  • The stated long-term goal for the WebDriver project is to be the reference implementation of the W3C browser automation standard from a client perspective

  • The browser vendors [w|s]ould provide 'shims' which know about the WebDriver JSON protocol

  • Google and Opera do already, Mozilla will shortly with Marionette

  • PhantomJS (non-vendor) is 'ready'

  • The Se project produces one for IE (which would be happily handed off to MS should they come to the table)

  • shims will likely come in two types; jar or executables (depending on platform)

  • WebDriver comes in two flavours; WebDriver and Remote WebDriver (see every other naming rant I've gone on...)

@AutomatedTester
AutomatedTester / display.js
Created November 13, 2012 15:31
isDisplayed Atoms
function(){return function(){function h(a){throw a;}var i=void 0,j=!0,k=null,m=!1;function n(a){return function(){return this[a]}}function aa(a){return function(){return a}}var o=this;
function ba(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 q(a){return a!==i}function r(a){return"string"==typeof a}Math.floor(2147483648*Math.random()).toString(36);function t(a,b){function c(){}c.prototype=b.prototype;a.fa=b.prototype;a.prototype=new c};var ca=window;var da=
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//clearElement
var clearElement = function(){return function(){function g(a){throw a;}var h=void 0,i=!0,k=null,l=!1;function n(a){return function(){return this[a]}}function o(a){return function(){return a}}var p,q=this;
function aa(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"obj
# Red Hat, CentOS, and Fedora think Apache is the only web server
# ever, so we have to use a different package on CentOS than Ubuntu.
class apache {
case $operatingsystem {
centos: {
package { "httpd-devel":
ensure => present,
before => File['/etc/httpd/conf.d/orangefactor.conf'];
}