Skip to content

Instantly share code, notes, and snippets.

View joelklabo's full-sized avatar
Zapping

klabo joelklabo

Zapping
View GitHub Profile
Failed to load user-extensions.js!
files='/users/joelklabo/desktop/flex stuff/user-extensions.js'
lineNumber=78
error=[Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]" nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)" location: "JS frame :: chrome://selenium-ide/content/file-utils.js :: anonymous :: line 78" data: no]
@joelklabo
joelklabo / FlexPilot AS error
Created December 8, 2010 04:41
In advanced datagrid
TypeError: Error #1010: A term is undefined and has no properties.
at org.flex_pilot::FPRecorder$/handleEvent()[/Users/joelklabo/Desktop/experimental/flex-pilot/src/org/flex_pilot/FPRecorder.as:315]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528]
at mx.controls.listClasses::AdvancedListBase/mouseUpHandler()[E:\dev\4.x\frameworks\projects\datavisualization\src\mx\controls\listClasses\AdvancedListBase.as:9529]
at mx.controls::AdvancedDataGridBaseEx/mouseUpHandler()[E:\dev\4.x\frameworks\projects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:7182]
at mx.controls::AdvancedDataGrid/mouseUpHandler()[E:\dev\4.x\frameworks\projects\datavisualization\src\mx\controls\AdvancedDataGrid.as:8634]
@joelklabo
joelklabo / ruby selenium test
Created December 8, 2010 03:14
A selenium RC ruby test
#
#
# I keep getting this error:
# accordionTest.rb:7: class/module name must be CONSTANT
# class accordionTest < Test::Unit::TestCase
#
# This is the code:
require "test/unit"
// Returns a wrapped version of the method that returns
// the Error obj to JS-land instead of actually throwing
var genExtFunc:Function = function (func:Function):Function {
return function (...args):* {
try {
for (var arg:* in args){
// Terrible hack working around half baked
// ExternalInterface support provided by
// Safari on Windows
@joelklabo
joelklabo / gist:724203
Created December 1, 2010 20:55
actionscript example
var genExtFunc:Function = function (func:Function):Function {
return function (...args):* { /// <----- this is the "...args" i am curious about
try {
for (var arg:* in args){
// Terrible hack working around half baked
// ExternalInterface support provided by
// Safari on Windows
// takes json strings and turns them into objects
if (args[arg] is String){
var o : Object = JSON.decode(args[arg]);
// init() (FlexPilot.as)
public class FlexPilot extends Sprite {
public static var config:Object = {
context: null, // Ref to the Stage or Application
timeout: 20000, // Default timeout for waits
domains: [],
strictLocators: false
};
public static var controllerMethods:Array = [];
@joelklabo
joelklabo / FlexPilot pattern
Created December 1, 2010 07:31
In DataGrid test, start explorer, "explore" stage
// init() (FlexPilot.as)
public class FlexPilot extends Sprite {
public static var config:Object = {
context: null, // Ref to the Stage or Application
timeout: 20000, // Default timeout for waits
domains: [],
strictLocators: false
};
public static var controllerMethods:Array = [];
Joel-Klabos-MacBook:node joelklabo$ tail -f '/Users/joelklabo/Library/Preferences/Macromedia/Flash Player/Logs/flashlog.txt'
Warning: includeMouseActivityOf is not a function
Warning: swapDepths is not a function
Warning: 'com' has no property '_visible'
Warning: onStatus is not a function
Warning: 'com' has no property '_x'
Warning: 'com' has no property '_x'
Warning: Domain i1.ytimg.com does not explicitly specify a meta-policy, but Content-Type of policy file http://i1.ytimg.com/crossdomain.xml is 'text/x-cross-domain-policy'. Applying meta-policy 'by-content-type'.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at org.flex_pilot::FPLocator$/generateLocator()[/Users/adam/Projects/flex-pilot/src/org/flex_pilot/FPLocator.as:405]
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure