From b07875c0defbd25d18b699c724ef371e46935cb0 Mon Sep 17 00:00:00 2001 From: Benjamin Jones Date: Tue, 4 Dec 2012 18:54:02 -0800 Subject: gave exampleData/basic a better name: sites --- exampleData/basic/headings.html | 18 ------------ exampleData/basic/headingscss.html | 18 ------------ exampleData/basic/star.gif | Bin 39703 -> 0 bytes exampleData/basic/star.jpeg | Bin 6194 -> 0 bytes exampleData/basic/testColorRules.html | 51 --------------------------------- exampleData/basic/testFontRules.html | 31 -------------------- exampleData/basic/testImageRules.html | 31 -------------------- exampleData/basic/test_template.html | 19 ------------ exampleData/basic/testheadings.html | 24 ---------------- exampleData/headlessRuns/.gitignore | 1 + exampleData/headlessRuns/README.md | 5 ++++ exampleData/headlessRuns/basicRun.json | 8 ++++++ exampleData/headlessRuns/runExample.sh | 8 ++++++ exampleData/sites/headings.html | 18 ++++++++++++ exampleData/sites/headingscss.html | 18 ++++++++++++ exampleData/sites/star.gif | Bin 0 -> 39703 bytes exampleData/sites/star.jpeg | Bin 0 -> 6194 bytes exampleData/sites/testColorRules.html | 51 +++++++++++++++++++++++++++++++++ exampleData/sites/testFontRules.html | 31 ++++++++++++++++++++ exampleData/sites/testImageRules.html | 31 ++++++++++++++++++++ exampleData/sites/test_template.html | 19 ++++++++++++ exampleData/sites/testheadings.html | 24 ++++++++++++++++ 22 files changed, 214 insertions(+), 192 deletions(-) delete mode 100644 exampleData/basic/headings.html delete mode 100644 exampleData/basic/headingscss.html delete mode 100644 exampleData/basic/star.gif delete mode 100644 exampleData/basic/star.jpeg delete mode 100644 exampleData/basic/testColorRules.html delete mode 100644 exampleData/basic/testFontRules.html delete mode 100644 exampleData/basic/testImageRules.html delete mode 100644 exampleData/basic/test_template.html delete mode 100644 exampleData/basic/testheadings.html create mode 100644 exampleData/headlessRuns/.gitignore create mode 100644 exampleData/headlessRuns/README.md create mode 100644 exampleData/headlessRuns/basicRun.json create mode 100755 exampleData/headlessRuns/runExample.sh create mode 100644 exampleData/sites/headings.html create mode 100644 exampleData/sites/headingscss.html create mode 100644 exampleData/sites/star.gif create mode 100644 exampleData/sites/star.jpeg create mode 100644 exampleData/sites/testColorRules.html create mode 100644 exampleData/sites/testFontRules.html create mode 100644 exampleData/sites/testImageRules.html create mode 100644 exampleData/sites/test_template.html create mode 100644 exampleData/sites/testheadings.html (limited to 'exampleData') diff --git a/exampleData/basic/headings.html b/exampleData/basic/headings.html deleted file mode 100644 index 86c0588..0000000 --- a/exampleData/basic/headings.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - -

this heading is not in sentence case

-

-Sample text -

-

neither is this heading

-

This heading is in sentence case

-

-Here's an empty heading: -

-

-

This Heading is in Title Case

- - - diff --git a/exampleData/basic/headingscss.html b/exampleData/basic/headingscss.html deleted file mode 100644 index 005e908..0000000 --- a/exampleData/basic/headingscss.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - -

this heading is not in sentence case

-

-Sample text -

-

neither is this heading

-

This heading is in sentence case

-

-Here's an empty heading: -

-

-

This Heading is in Title Case

- - - diff --git a/exampleData/basic/star.gif b/exampleData/basic/star.gif deleted file mode 100644 index 30bcb1a..0000000 Binary files a/exampleData/basic/star.gif and /dev/null differ diff --git a/exampleData/basic/star.jpeg b/exampleData/basic/star.jpeg deleted file mode 100644 index 026306b..0000000 Binary files a/exampleData/basic/star.jpeg and /dev/null differ diff --git a/exampleData/basic/testColorRules.html b/exampleData/basic/testColorRules.html deleted file mode 100644 index 58aa7ce..0000000 --- a/exampleData/basic/testColorRules.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - Test Color Rules - - - - - - - - - - -
-

Color tests

-

This (almost) is an FF paragraph.

-

This is an CC paragraph.

-

This is an 3D paragraph.

-

This is an 00 paragraph.

-
-

This is a paragraph with OK bg color

-

This is a paragraph with BAD bg color

-
-
- This is a DIV ID=content -
- random text here -
- This is a DIV ID=content with bad colors! -
-
- - link 1 ref - link 2 ref - link 3 ref - - - - diff --git a/exampleData/basic/testFontRules.html b/exampleData/basic/testFontRules.html deleted file mode 100644 index 3bea3f4..0000000 --- a/exampleData/basic/testFontRules.html +++ /dev/null @@ -1,31 +0,0 @@ - - - Test Font Rules - - - -

Test Font Rules

- -

- This is Verdana / Bold / 12px -

- -

- This is Verdana font at 150% -

- -

- This is Times font -

- -

- This is Times font at 150% -

- -

- This is Times font at 36pt -

- - - - diff --git a/exampleData/basic/testImageRules.html b/exampleData/basic/testImageRules.html deleted file mode 100644 index 66c3772..0000000 --- a/exampleData/basic/testImageRules.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - -

this is a heading

-

-We need a star.gif somewhere!? -

-

Images

-An example, this one should pass: - -

- - - -

-This link has no image. -

-A non-example, this one should fail: - - - - - - - - diff --git a/exampleData/basic/test_template.html b/exampleData/basic/test_template.html deleted file mode 100644 index 7adadc3..0000000 --- a/exampleData/basic/test_template.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - -

this heading is not BOB

-

-Sample text -

-

BOB

-

-Here's an empty heading: -

-

-

This Heading is in Title Case

- - - - - diff --git a/exampleData/basic/testheadings.html b/exampleData/basic/testheadings.html deleted file mode 100644 index 456ba82..0000000 --- a/exampleData/basic/testheadings.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - -

this heading is not in sentence case

-

-Sample text -

-

neither is this heading

-

This heading is in sentence case

-

-Here's an empty heading: -

-

-

This Heading is in Title Case

- - - diff --git a/exampleData/headlessRuns/.gitignore b/exampleData/headlessRuns/.gitignore new file mode 100644 index 0000000..f47cb20 --- /dev/null +++ b/exampleData/headlessRuns/.gitignore @@ -0,0 +1 @@ +*.out diff --git a/exampleData/headlessRuns/README.md b/exampleData/headlessRuns/README.md new file mode 100644 index 0000000..d6f27b4 --- /dev/null +++ b/exampleData/headlessRuns/README.md @@ -0,0 +1,5 @@ +# Example Headless Run Configurations # + +The examples run configuration files in this directory require a +local websever to be running on port 8000 hosting the HTML files in +$FIVEUI_ROOT/exampleData/sites/. diff --git a/exampleData/headlessRuns/basicRun.json b/exampleData/headlessRuns/basicRun.json new file mode 100644 index 0000000..93fb93c --- /dev/null +++ b/exampleData/headlessRuns/basicRun.json @@ -0,0 +1,8 @@ +{ + 'rulePath' : '../ruleSets/', + 'crawlType' : 'none', + 'runs': [ + { 'url': 'http://localhost:8000/testColorRules.html', 'ruleSet': 'colorRulesRF.json' }, + { 'url': 'http://localhost:8000/testFontRules.html', 'ruleSet': 'fontRules.json' } + ] +} diff --git a/exampleData/headlessRuns/runExample.sh b/exampleData/headlessRuns/runExample.sh new file mode 100755 index 0000000..dd11b03 --- /dev/null +++ b/exampleData/headlessRuns/runExample.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +export FIVEUI_ROOT_PATH=../../ +export FIREFOX_BIN_PATH='/Applications/Firefox 10.0.7esr.app/Contents/MacOS/firefox' + +java -DFIVEUI_ROOT_PATH=$FIVEUI_ROOT_PATH \ + -DFIREFOX_BIN_PATH="$FIREFOX_BIN_PATH" \ + -jar $FIVEUI_ROOT_PATH/headless/target/HeadlessRunner-0.0.1-SNAPSHOT.one-jar.jar \ + $* diff --git a/exampleData/sites/headings.html b/exampleData/sites/headings.html new file mode 100644 index 0000000..86c0588 --- /dev/null +++ b/exampleData/sites/headings.html @@ -0,0 +1,18 @@ + + + + +

this heading is not in sentence case

+

+Sample text +

+

neither is this heading

+

This heading is in sentence case

+

+Here's an empty heading: +

+

+

This Heading is in Title Case

+ + + diff --git a/exampleData/sites/headingscss.html b/exampleData/sites/headingscss.html new file mode 100644 index 0000000..005e908 --- /dev/null +++ b/exampleData/sites/headingscss.html @@ -0,0 +1,18 @@ + + + + +

this heading is not in sentence case

+

+Sample text +

+

neither is this heading

+

This heading is in sentence case

+

+Here's an empty heading: +

+

+

This Heading is in Title Case

+ + + diff --git a/exampleData/sites/star.gif b/exampleData/sites/star.gif new file mode 100644 index 0000000..30bcb1a Binary files /dev/null and b/exampleData/sites/star.gif differ diff --git a/exampleData/sites/star.jpeg b/exampleData/sites/star.jpeg new file mode 100644 index 0000000..026306b Binary files /dev/null and b/exampleData/sites/star.jpeg differ diff --git a/exampleData/sites/testColorRules.html b/exampleData/sites/testColorRules.html new file mode 100644 index 0000000..58aa7ce --- /dev/null +++ b/exampleData/sites/testColorRules.html @@ -0,0 +1,51 @@ + + + + Test Color Rules + + + + + + + + + + +
+

Color tests

+

This (almost) is an FF paragraph.

+

This is an CC paragraph.

+

This is an 3D paragraph.

+

This is an 00 paragraph.

+
+

This is a paragraph with OK bg color

+

This is a paragraph with BAD bg color

+
+
+ This is a DIV ID=content +
+ random text here +
+ This is a DIV ID=content with bad colors! +
+
+ + link 1 ref + link 2 ref + link 3 ref + + + + diff --git a/exampleData/sites/testFontRules.html b/exampleData/sites/testFontRules.html new file mode 100644 index 0000000..3bea3f4 --- /dev/null +++ b/exampleData/sites/testFontRules.html @@ -0,0 +1,31 @@ + + + Test Font Rules + + + +

Test Font Rules

+ +

+ This is Verdana / Bold / 12px +

+ +

+ This is Verdana font at 150% +

+ +

+ This is Times font +

+ +

+ This is Times font at 150% +

+ +

+ This is Times font at 36pt +

+ + + + diff --git a/exampleData/sites/testImageRules.html b/exampleData/sites/testImageRules.html new file mode 100644 index 0000000..66c3772 --- /dev/null +++ b/exampleData/sites/testImageRules.html @@ -0,0 +1,31 @@ + + + + + + +

this is a heading

+

+We need a star.gif somewhere!? +

+

Images

+An example, this one should pass: + +

+ + + +

+This link has no image. +

+A non-example, this one should fail: + + + + + + + + diff --git a/exampleData/sites/test_template.html b/exampleData/sites/test_template.html new file mode 100644 index 0000000..7adadc3 --- /dev/null +++ b/exampleData/sites/test_template.html @@ -0,0 +1,19 @@ + + + + +

this heading is not BOB

+

+Sample text +

+

BOB

+

+Here's an empty heading: +

+

+

This Heading is in Title Case

+ + + + + diff --git a/exampleData/sites/testheadings.html b/exampleData/sites/testheadings.html new file mode 100644 index 0000000..456ba82 --- /dev/null +++ b/exampleData/sites/testheadings.html @@ -0,0 +1,24 @@ + + + + + + + + + + +

this heading is not in sentence case

+

+Sample text +

+

neither is this heading

+

This heading is in sentence case

+

+Here's an empty heading: +

+

+

This Heading is in Title Case

+ + + -- cgit v1.2.3