Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes on FPAssert.as #2

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
334fd13
Re-pushing all of the mash code
admc Jul 28, 2010
3a3bcf2
no swf files checked into the tree
admc Jul 28, 2010
607ff9f
updated my copy and removed cropping in FlexPilotTest in firefox
Jul 28, 2010
e29e605
Improving formatting, fixing the datagrid link clicking bug
admc Jul 29, 2010
998254d
Resolving some of the conflicts, recorder code is still broken
admc Jul 30, 2010
9f39443
Getting the mahesh branch all up-to date
admc Aug 5, 2010
c7c65f5
Merging in data grid from mash branch
admc Aug 6, 2010
4b12ebf
Adding the new support for data grids, sliders, data pickers etc
admc Aug 6, 2010
b504c28
Fixing a lookup bug, adding the ability to specify an offset for drag…
admc Aug 18, 2010
12505e3
Adding tests for the wildcards, success
admc Aug 18, 2010
5594ff1
Adding adding a real index for all the testing apps
admc Aug 19, 2010
290569f
Adding a header
admc Aug 19, 2010
06932be
Adding a new locator: child, allowing you to specify a child directly…
admc Aug 20, 2010
9b8c671
Major formatting re-org
admc Aug 23, 2010
be74df7
Adding a try wrapper on an occasional exception that needs to be ignored
admc Aug 27, 2010
d2ba1c3
Fixing some bad spacing, adding fp_dump for UI debugging
admc Aug 31, 2010
7cf4a09
Support for objects inside ControlBar components, not fully supported…
admc Sep 8, 2010
ededcd2
Fixing build script
admc Sep 8, 2010
031c827
fix bug assertProperty failed at if (opts.preMatchProcess) it is null…
mariangemarcano Oct 15, 2010
a177502
being able to call assertProperty on enabled attribute failing on com…
mariangemarcano Oct 15, 2010
1cb5d4f
Method ObjectUtil.toString(attrVal) is not working using chain=id:cur…
mariangemarcano Oct 15, 2010
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Flex Pilot

A library for doing easy testing automation of Flash and Flex
applications. Includes a locator/lookup mechanism, eventing,
and an AS3 test-runner.


Flex Pilot
A library for doing easy testing automation of Flash and Flex
applications. Includes a locator/lookup mechanism, eventing,
and an AS3 test-runner.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import shutil

# Location of compiler
MXMLC_PATH = 'mxmlc -debug -verbose-stacktraces -incremental=true -compiler.strict -compiler.show-actionscript-warnings -static-link-runtime-shared-libraries=true'
MXMLC_PATH = 'mxmlc -debug -verbose-stacktraces -incremental=true -compiler.strict -compiler.show-actionscript-warnings -static-link-runtime-shared-libraries=true -define=FP::complete,false'

# For replacing .as with .swf
as_re = re.compile('\.as$|\.mxml$')
Expand Down
44 changes: 22 additions & 22 deletions pkg/build.json
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"source-path":
".",
"output":
"flex_pilot.swc",
"include-classes":
[
"org.flex_pilot.FlexPilot",
"org.flex_pilot.FPController",
"org.flex_pilot.FPLocator",
"org.flex_pilot.FPLogger",
"org.flex_pilot.FPExplorer",
"org.flex_pilot.FPRecorder",
"org.flex_pilot.FPAssert",
"org.flex_pilot.events.Events",
"org.flex_pilot.events.FPFocusEvent",
"org.flex_pilot.events.FPKeyboardEvent",
"org.flex_pilot.events.FPListEvent",
"org.flex_pilot.events.FPMouseEvent",
"org.flex_pilot.events.FPTextEvent"
]
}
{
"source-path":
".",
"output":
"flex_pilot.swc",
"include-classes":
[
"org.flex_pilot.FlexPilot",
"org.flex_pilot.FPController",
"org.flex_pilot.FPLocator",
"org.flex_pilot.FPLogger",
"org.flex_pilot.FPExplorer",
"org.flex_pilot.FPRecorder",
"org.flex_pilot.FPAssert",
"org.flex_pilot.events.Events",
"org.flex_pilot.events.FPFocusEvent",
"org.flex_pilot.events.FPKeyboardEvent",
"org.flex_pilot.events.FPListEvent",
"org.flex_pilot.events.FPMouseEvent",
"org.flex_pilot.events.FPTextEvent"
]
}
194 changes: 97 additions & 97 deletions src/com/adobe/air/logging/FileTarget.as
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,98 +1,98 @@
/*
Copyright (c) 2008, Adobe Systems Incorporated
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

package com.adobe.air.logging
{
import mx.logging.AbstractTarget;
import flash.filesystem.File;
import flash.filesystem.FileStream;
import flash.filesystem.FileMode;
import mx.logging.LogEvent;
import flash.system.System;
import flash.system.Capabilities;
import mx.logging.targets.LineFormattedTarget;
import mx.core.mx_internal;

use namespace mx_internal;

/**
* An Adobe AIR only class that provides a log target for the Flex logging
* framework, that logs files to a file on the user's system.
*
* This class will only work when running within Adobe AIR>
*/
public class FileTarget extends LineFormattedTarget
{
private const DEFAULT_LOG_PATH:String = "app-storage:/application.log";

private var log:File;

public function FileTarget(logFile:File = null)
{
if(logFile != null)
{
log = logFile;
}
else
{
log = new File(DEFAULT_LOG_PATH);
}
}

public function get logURI():String
{
return log.url;
}

mx_internal override function internalLog(message:String):void
{
write(message);
}

private function write(msg:String):void
{
var fs:FileStream = new FileStream();
fs.open(log, FileMode.APPEND);
fs.writeUTFBytes(msg + "\n");
fs.close();
}

public function clear():void
{
var fs:FileStream = new FileStream();
fs.open(log, FileMode.WRITE);
fs.writeUTFBytes("");
fs.close();
}

}
/*
Copyright (c) 2008, Adobe Systems Incorporated
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.adobe.air.logging
{
import mx.logging.AbstractTarget;
import flash.filesystem.File;
import flash.filesystem.FileStream;
import flash.filesystem.FileMode;
import mx.logging.LogEvent;
import flash.system.System;
import flash.system.Capabilities;
import mx.logging.targets.LineFormattedTarget;
import mx.core.mx_internal;
use namespace mx_internal;
/**
* An Adobe AIR only class that provides a log target for the Flex logging
* framework, that logs files to a file on the user's system.
*
* This class will only work when running within Adobe AIR>
*/
public class FileTarget extends LineFormattedTarget
{
private const DEFAULT_LOG_PATH:String = "app-storage:/application.log";
private var log:File;
public function FileTarget(logFile:File = null)
{
if(logFile != null)
{
log = logFile;
}
else
{
log = new File(DEFAULT_LOG_PATH);
}
}
public function get logURI():String
{
return log.url;
}
mx_internal override function internalLog(message:String):void
{
write(message);
}
private function write(msg:String):void
{
var fs:FileStream = new FileStream();
fs.open(log, FileMode.APPEND);
fs.writeUTFBytes(msg + "\n");
fs.close();
}
public function clear():void
{
var fs:FileStream = new FileStream();
fs.open(log, FileMode.WRITE);
fs.writeUTFBytes("");
fs.close();
}
}
}
Empty file modified src/com/adobe/crypto/HMAC.as
100644 → 100755
Empty file.
Loading