forked from jbmartinez/php-formatter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
44 lines (30 loc) · 1.27 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
README
PHP formatter for Selenium IDE with WebDriver support (aka Selenium 2).
It's still on development, but it seems to be working fine. I'm writing this
formatter because I wanted to do headless testing with phantomjs, which does not
support the old RC version.
If you get a "The command 'keys' is not existent or not supported yet" message,
replace any call to keys() with value().
This is a fork of @jbmartinez which is a fork of Adam Goucher's PHP Formatter for Selenium IDE.
Example build scripts via Adam Goucher : http://adam.goucher.ca/?p=1331
--------------------------------------------------
BUILD.SH
#!/bin/bash
APP_NAME=php-formatter # short-name, jar and xpi files name. Must be lowercase with no spaces
CHROME_PROVIDERS="content" # which chrome providers we have (space-separated list)
ROOT_DIRS="defaults" # ...and these directories (space separated list)
ROOT_DIR=`pwd`
TMP_DIR=build
# remove any left-over files from previous build
rm -f $APP_NAME.jar $APP_NAME.xpi
rm -rf $TMP_DIR
mkdir -p $TMP_DIR/chrome/content
cp -v -R src/content $TMP_DIR/chrome
cp -v src/install.rdf $TMP_DIR
cp -v src/chrome.manifest $TMP_DIR
# generate the XPI file
cd $TMP_DIR
echo "Generating $APP_NAME.xpi..."
zip -r ../$APP_NAME.xpi *
cd "$ROOT_DIR"
rm -rf $TMP_DIR