diff --git a/Mf2/Parser.php b/Mf2/Parser.php index 57ec5a8..e8e6dda 100644 --- a/Mf2/Parser.php +++ b/Mf2/Parser.php @@ -362,7 +362,7 @@ public function __construct($input, $url = null, $jsonMode = false) { $doc = $doc->loadHTML($input); } else { $doc = new DOMDocument(); - @$doc->loadHTML(unicodeToHtmlEntities($input)); + @$doc->loadHTML(unicodeToHtmlEntities($input), \LIBXML_NOWARNING); } } elseif (is_a($input, 'DOMDocument')) { $doc = clone $input; diff --git a/composer.json b/composer.json index 781158f..6e90472 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ }, "require-dev": { "phpunit/phpunit": "4.8.*", - "mf2/tests": "@dev", + "mf2/tests": "dev-master#e9e2b905821ba0a5b59dab1a8eaf40634ce9cd49", "squizlabs/php_codesniffer": "^2.6 || ^3.1.0", "dealerdirect/phpcodesniffer-composer-installer": "^0.6", "phpcompatibility/php-compatibility": "^9.3" diff --git a/composer.lock b/composer.lock index 1f4b2ae..09eebcc 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "2f5cba8d59844019de9c395fda0f3686", + "content-hash": "39957afa0391e7113df2b17587c1c833", "packages": [], "packages-dev": [ { @@ -135,12 +135,12 @@ "source": { "type": "git", "url": "https://github.com/microformats/tests.git", - "reference": "92b58935c2c2e016ba5fc430410dda051a6fb20f" + "reference": "e9e2b905821ba0a5b59dab1a8eaf40634ce9cd49" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/microformats/tests/zipball/92b58935c2c2e016ba5fc430410dda051a6fb20f", - "reference": "92b58935c2c2e016ba5fc430410dda051a6fb20f", + "url": "https://api.github.com/repos/microformats/tests/zipball/e9e2b905821ba0a5b59dab1a8eaf40634ce9cd49", + "reference": "e9e2b905821ba0a5b59dab1a8eaf40634ce9cd49", "shasum": "" }, "type": "library", @@ -156,7 +156,7 @@ ], "description": "Microformats test suite", "homepage": "https://github.com/microformats/tests", - "time": "2018-09-12T18:43:24+00:00" + "time": "2020-05-01T03:19:45+00:00" }, { "name": "phpcompatibility/php-compatibility", @@ -1229,16 +1229,16 @@ }, { "name": "symfony/polyfill-ctype", - "version": "v1.15.0", + "version": "v1.17.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "4719fa9c18b0464d399f1a63bf624b42b6fa8d14" + "reference": "e94c8b1bbe2bc77507a1056cdb06451c75b427f9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/4719fa9c18b0464d399f1a63bf624b42b6fa8d14", - "reference": "4719fa9c18b0464d399f1a63bf624b42b6fa8d14", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e94c8b1bbe2bc77507a1056cdb06451c75b427f9", + "reference": "e94c8b1bbe2bc77507a1056cdb06451c75b427f9", "shasum": "" }, "require": { @@ -1250,7 +1250,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.15-dev" + "dev-master": "1.17-dev" } }, "autoload": { @@ -1297,7 +1297,7 @@ "type": "tidelift" } ], - "time": "2020-02-27T09:26:54+00:00" + "time": "2020-05-12T16:14:59+00:00" }, { "name": "symfony/yaml", diff --git a/phpunit.xml b/phpunit.xml index 08a3463..99613b4 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -5,4 +5,9 @@ tests/Mf2 + + + microformats/tests/mf1 + + diff --git a/tests/Mf2/MicroformatsTestSuiteTest.php b/tests/Mf2/MicroformatsTestSuiteTest.php new file mode 100644 index 0000000..3f0392f --- /dev/null +++ b/tests/Mf2/MicroformatsTestSuiteTest.php @@ -0,0 +1,167 @@ +tagName) and in_array(strtolower($el->tagName), $excludeTags)) { + return ''; + } + + $this->_resolveChildUrls($el); + + $clonedEl = $el->cloneNode(true); + + foreach ($this->xpath->query('.//img', $clonedEl) as $imgEl) { + if ($imgEl->hasAttribute('alt')) { + $replacement = $imgEl->getAttribute('alt'); + } else if ($imgEl->hasAttribute('src')) { + $replacement = ' ' . $imgEl->getAttribute('src') . ' '; + } else { + $replacement = ''; // Bye bye IMG element. + } + $newNode = $this->doc->createTextNode($replacement); + $imgEl->parentNode->replaceChild($newNode, $imgEl); + } + + foreach ($excludeTags as $tagName) { + foreach ($this->xpath->query(".//{$tagName}", $clonedEl) as $elToRemove) { + $elToRemove->parentNode->removeChild($elToRemove); + } + } + + return \Mf2\unicodeTrim($clonedEl->textContent); + } + + // Hack. Old textContent requires "resolveChildUrls", but that method is private. + private $__resolveChildUrls = null; + private function _resolveChildUrls(\DOMElement $element) { + if (null === $this->__resolveChildUrls) { + $reflectUpon = new \ReflectionClass($this); + $this->__resolveChildUrls = $reflectUpon->getMethod('resolveChildUrls'); + $this->__resolveChildUrls->setAccessible(true); + } + return $this->__resolveChildUrls->invoke($this, $element); + } +} + +class MicroformatsTestSuiteTest extends \PHPUnit_Framework_TestCase +{ + /** + * @dataProvider mf1TestsProvider + * @group microformats/tests/mf1 + */ + public function testMf1FromTestSuite($input, $expectedOutput) + { + $parser = new TestSuiteParser($input, 'http://example.com/'); + $this->assertEquals( + $this->makeComparible(json_decode($expectedOutput, true)), + $this->makeComparible(json_decode(json_encode($parser->parse()), true)) + ); + } + + /** + * @dataProvider mf2TestsProvider + * @group microformats/tests/mf2 + */ + public function testMf2FromTestSuite($input, $expectedOutput, $test) + { + if ($test === 'h-event/time') { + $this->markTestIncomplete('This test does not match because we implement a proposed spec: https://github.com/microformats/microformats2-parsing/issues/4#issuecomment-373457720.'); + } + + $parser = new TestSuiteParser($input, 'http://example.com/'); + $this->assertEquals( + $this->makeComparible(json_decode($expectedOutput, true)), + $this->makeComparible(json_decode(json_encode($parser->parse()), true)) + ); + } + + /** + * @dataProvider mixedTestsProvider + * @group microformats/tests/mixed + */ + public function testMixedFromTestSuite($input, $expectedOutput) + { + $parser = new TestSuiteParser($input, 'http://example.com/'); + $this->assertEquals( + $this->makeComparible(json_decode($expectedOutput, true)), + $this->makeComparible(json_decode(json_encode($parser->parse()), true)) + ); + } + + /** + * To make arrays coming from JSON more easily comparible by PHPUnit: + * * We sort arrays by key, normalising them, because JSON objects are unordered. + * * We json_encode strings, and cut the starting and ending ", so PHPUnit better + * shows whitespace characters like tabs and newlines. + **/ + public function makeComparible($array) + { + ksort($array); + foreach ($array as $key => $value) { + if (gettype($value) === 'array') { + $array[$key] = $this->makeComparible($value); + } else if (gettype($value) === 'string') { + $array[$key] = substr(json_encode($value), 1, -1); + } + } + return $array; + } + + /** + * Data provider lists all tests from a specific directory in mf2/tests. + **/ + public function htmlAndJsonProvider($subFolder = '') + { + // Get the actual wanted subfolder. + $subFolder = '/mf2/tests/tests' . $subFolder; + // Ripped out of the test-suite.php code: + $finder = new \RegexIterator( + new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator( + dirname(__FILE__) . '/../../vendor/' . $subFolder, + \RecursiveDirectoryIterator::SKIP_DOTS + )), + '/^.+\.html$/i', + \RecursiveRegexIterator::GET_MATCH + ); + // Build the array of separate tests: + $tests = array(); + foreach ($finder as $key => $value) { + $dir = realpath(pathinfo($key, PATHINFO_DIRNAME)); + $testname = substr($dir, strpos($dir, $subFolder) + strlen($subFolder) + 1) . '/' . pathinfo($key, PATHINFO_FILENAME); + $test = pathinfo($key, PATHINFO_BASENAME); + $result = pathinfo($key, PATHINFO_FILENAME) . '.json'; + if (is_file($dir . '/' . $result)) { + $tests[$testname] = array( + 'input' => file_get_contents($dir . '/' . $test), + 'expectedOutput' => file_get_contents($dir . '/' . $result), + 'name' => $testname + ); + } + } + return $tests; + } + + /** + * Following three functions are the actual dataProviders used by the test methods. + */ + public function mf1TestsProvider() + { + return $this->htmlAndJsonProvider('/microformats-v1'); + } + + public function mf2TestsProvider() + { + return $this->htmlAndJsonProvider('/microformats-v2'); + } + + public function mixedTestsProvider() + { + return $this->htmlAndJsonProvider('/microformats-mixed'); + } +} diff --git a/tests/Mf2/ParserTest.php b/tests/Mf2/ParserTest.php index 643e020..e0f96cc 100644 --- a/tests/Mf2/ParserTest.php +++ b/tests/Mf2/ParserTest.php @@ -817,9 +817,9 @@ public function testNotMutatingPassedInDOM() { // Use same parsing as Parser::__construct(), twice to have a comparison object. libxml_use_internal_errors(true); $refDoc = new \DOMDocument(); - @$refDoc->loadHTML(Mf2\unicodeToHtmlEntities($input)); + @$refDoc->loadHTML(Mf2\unicodeToHtmlEntities($input), \LIBXML_NOWARNING); $inputDoc = new \DOMDocument(); - @$inputDoc->loadHTML(Mf2\unicodeToHtmlEntities($input)); + @$inputDoc->loadHTML(Mf2\unicodeToHtmlEntities($input), \LIBXML_NOWARNING); // For completion sake, test PHP itself. $this->assertEquals($refDoc, $inputDoc, 'PHP could not create identical DOMDocument instances.'); diff --git a/tests/test-suite/test-suite-data/adr/justaname/input.html b/tests/test-suite/test-suite-data/adr/justaname/input.html deleted file mode 100644 index 2f8bdf4..0000000 --- a/tests/test-suite/test-suite-data/adr/justaname/input.html +++ /dev/null @@ -1 +0,0 @@ -

665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/adr/justaname/output.json b/tests/test-suite/test-suite-data/adr/justaname/output.json deleted file mode 100644 index b6e96ad..0000000 --- a/tests/test-suite/test-suite-data/adr/justaname/output.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "items": [{ - "type": ["h-adr"], - "properties": { - "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/adr/justaname/test.json b/tests/test-suite/test-suite-data/adr/justaname/test.json deleted file mode 100644 index c97fd02..0000000 --- a/tests/test-suite/test-suite-data/adr/justaname/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a name", - "description": "adr", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/adr/simpleproperties/input.html b/tests/test-suite/test-suite-data/adr/simpleproperties/input.html deleted file mode 100644 index 3b056af..0000000 --- a/tests/test-suite/test-suite-data/adr/simpleproperties/input.html +++ /dev/null @@ -1,8 +0,0 @@ -

- 665 3rd St. - Suite 207 - San Francisco, - CA - 94107 - U.S.A. -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/adr/simpleproperties/output.json b/tests/test-suite/test-suite-data/adr/simpleproperties/output.json deleted file mode 100644 index 5e6fa40..0000000 --- a/tests/test-suite/test-suite-data/adr/simpleproperties/output.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "items": [{ - "type": ["h-adr"], - "properties": { - "street-address": ["665 3rd St."], - "extended-address": ["Suite 207"], - "locality": ["San Francisco"], - "region": ["CA"], - "postal-code": ["94107"], - "country-name": ["U.S.A."], - "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/adr/simpleproperties/test.json b/tests/test-suite/test-suite-data/adr/simpleproperties/test.json deleted file mode 100644 index f0f4211..0000000 --- a/tests/test-suite/test-suite-data/adr/simpleproperties/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Broken into properties", - "description": "h-adr", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/adr/suite.json b/tests/test-suite/test-suite-data/adr/suite.json deleted file mode 100644 index 191819a..0000000 --- a/tests/test-suite/test-suite-data/adr/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "adr parsing tests", - "description": "This page was design to test the parsing of adr and its output to the newer JSON structure of micorformats 2. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/geo/abbrpattern/input.html b/tests/test-suite/test-suite-data/geo/abbrpattern/input.html deleted file mode 100644 index 06b4dff..0000000 --- a/tests/test-suite/test-suite-data/geo/abbrpattern/input.html +++ /dev/null @@ -1,4 +0,0 @@ -

- N 37° 24.491, - W 122° 08.313 -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/geo/abbrpattern/output.json b/tests/test-suite/test-suite-data/geo/abbrpattern/output.json deleted file mode 100644 index fbf1669..0000000 --- a/tests/test-suite/test-suite-data/geo/abbrpattern/output.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "items": [{ - "type": ["h-geo"], - "properties": { - "latitude": ["37.408183"], - "longitude": ["-122.13855"], - "name": ["N 37° 24.491, W 122° 08.313"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/geo/abbrpattern/test.json b/tests/test-suite/test-suite-data/geo/abbrpattern/test.json deleted file mode 100644 index f757bef..0000000 --- a/tests/test-suite/test-suite-data/geo/abbrpattern/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "The tag pattern", - "description": "geo", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/geo/hidden/input.html b/tests/test-suite/test-suite-data/geo/hidden/input.html deleted file mode 100644 index a4ff5d2..0000000 --- a/tests/test-suite/test-suite-data/geo/hidden/input.html +++ /dev/null @@ -1,10 +0,0 @@ -

- The Bricklayer's Arms - - - - - - - -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/geo/hidden/output.json b/tests/test-suite/test-suite-data/geo/hidden/output.json deleted file mode 100644 index 397f280..0000000 --- a/tests/test-suite/test-suite-data/geo/hidden/output.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "items": [{ - "type": ["h-geo"], - "properties": { - "latitude": ["51.513458"], - "longitude": ["-0.14812"], - "name": ["The Bricklayer's Arms"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/geo/hidden/test.json b/tests/test-suite/test-suite-data/geo/hidden/test.json deleted file mode 100644 index 32634f6..0000000 --- a/tests/test-suite/test-suite-data/geo/hidden/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Hidden value-title pattern", - "description": "geo", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/geo/justaname/input.html b/tests/test-suite/test-suite-data/geo/justaname/input.html deleted file mode 100644 index 05c64be..0000000 --- a/tests/test-suite/test-suite-data/geo/justaname/input.html +++ /dev/null @@ -1,3 +0,0 @@ -

On my way to The Bricklayer's Arms - (Geo: 51.513458;-0.14812) -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/geo/justaname/output.json b/tests/test-suite/test-suite-data/geo/justaname/output.json deleted file mode 100644 index 8fe397b..0000000 --- a/tests/test-suite/test-suite-data/geo/justaname/output.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "items": [{ - "type": ["h-geo"], - "properties": { - "name": ["51.513458;-0.14812"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/geo/justaname/test.json b/tests/test-suite/test-suite-data/geo/justaname/test.json deleted file mode 100644 index 3311f8e..0000000 --- a/tests/test-suite/test-suite-data/geo/justaname/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a name", - "description": "geo", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/geo/simpleproperties/input.html b/tests/test-suite/test-suite-data/geo/simpleproperties/input.html deleted file mode 100644 index 3f39cf3..0000000 --- a/tests/test-suite/test-suite-data/geo/simpleproperties/input.html +++ /dev/null @@ -1,6 +0,0 @@ -We are meeting at - - The Bricklayer's Arms - (Geo: 51.513458: - -0.14812) - \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/geo/simpleproperties/output.json b/tests/test-suite/test-suite-data/geo/simpleproperties/output.json deleted file mode 100644 index 68af892..0000000 --- a/tests/test-suite/test-suite-data/geo/simpleproperties/output.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "items": [{ - "type": ["h-geo"], - "properties": { - "latitude": ["51.513458"], - "longitude": ["-0.14812"], - "name": ["The Bricklayer's Arms (Geo: 51.513458: -0.14812)"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/geo/simpleproperties/test.json b/tests/test-suite/test-suite-data/geo/simpleproperties/test.json deleted file mode 100644 index c99a5c5..0000000 --- a/tests/test-suite/test-suite-data/geo/simpleproperties/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Broken into properties", - "description": "geo", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/geo/suite.json b/tests/test-suite/test-suite-data/geo/suite.json deleted file mode 100644 index a24e71a..0000000 --- a/tests/test-suite/test-suite-data/geo/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "geo parsing tests", - "description": "This page was design to test the parsing of geo and its output to the newer JSON structure of micorformats 2. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/geo/valuetitleclass/input.html b/tests/test-suite/test-suite-data/geo/valuetitleclass/input.html deleted file mode 100644 index 4115e2f..0000000 --- a/tests/test-suite/test-suite-data/geo/valuetitleclass/input.html +++ /dev/null @@ -1,10 +0,0 @@ -

- - - N 51° 51.345, - - - W -0° 14.812 - - -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/geo/valuetitleclass/output.json b/tests/test-suite/test-suite-data/geo/valuetitleclass/output.json deleted file mode 100644 index 1aa2631..0000000 --- a/tests/test-suite/test-suite-data/geo/valuetitleclass/output.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "items": [{ - "type": ["h-geo"], - "properties": { - "latitude": ["51.513458"], - "longitude": ["-0.14812"], - "name": ["N 51° 51.345, W -0° 14.812"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/geo/valuetitleclass/test.json b/tests/test-suite/test-suite-data/geo/valuetitleclass/test.json deleted file mode 100644 index 52a09ba..0000000 --- a/tests/test-suite/test-suite-data/geo/valuetitleclass/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Value-title class pattern", - "description": "geo", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-adr/geo/input.html b/tests/test-suite/test-suite-data/h-adr/geo/input.html deleted file mode 100644 index f337957..0000000 --- a/tests/test-suite/test-suite-data/h-adr/geo/input.html +++ /dev/null @@ -1,10 +0,0 @@ -

- Bricklayer's Arms - - 3 Charlotte Road, - City of London, - EC2A 3PE, - UK - – - Geo:(51.526421;-0.081067) -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-adr/geo/output.json b/tests/test-suite/test-suite-data/h-adr/geo/output.json deleted file mode 100644 index 5a3f6a5..0000000 --- a/tests/test-suite/test-suite-data/h-adr/geo/output.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "items": [{ - "type": ["h-adr"], - "properties": { - "name": ["Bricklayer's Arms"], - "label": ["3 Charlotte Road, City of London, EC2A 3PE, UK"], - "street-address": ["3 Charlotte Road"], - "locality": ["City of London"], - "postal-code": ["EC2A 3PE"], - "country-name": ["UK"], - "geo": ["51.526421;-0.081067"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-adr/geo/test.json b/tests/test-suite/test-suite-data/h-adr/geo/test.json deleted file mode 100644 index 6d61fea..0000000 --- a/tests/test-suite/test-suite-data/h-adr/geo/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "With geo data", - "description": "h-adr", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-adr/geourl/input.html b/tests/test-suite/test-suite-data/h-adr/geourl/input.html deleted file mode 100644 index 91edf33..0000000 --- a/tests/test-suite/test-suite-data/h-adr/geourl/input.html +++ /dev/null @@ -1,4 +0,0 @@ -

- Bricklayer's Arms, - London -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-adr/geourl/output.json b/tests/test-suite/test-suite-data/h-adr/geourl/output.json deleted file mode 100644 index 17b75ec..0000000 --- a/tests/test-suite/test-suite-data/h-adr/geourl/output.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "items": [{ - "type": ["h-adr"], - "properties": { - "name": ["Bricklayer's Arms"], - "geo": ["geo:51.526421;-0.081067;crs=wgs84;u=40"], - "locality": ["London"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-adr/geourl/test.json b/tests/test-suite/test-suite-data/h-adr/geourl/test.json deleted file mode 100644 index 580c199..0000000 --- a/tests/test-suite/test-suite-data/h-adr/geourl/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "With geo url", - "description": "h-adr", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-adr/justaname/input.html b/tests/test-suite/test-suite-data/h-adr/justaname/input.html deleted file mode 100644 index 5a02259..0000000 --- a/tests/test-suite/test-suite-data/h-adr/justaname/input.html +++ /dev/null @@ -1 +0,0 @@ -

665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-adr/justaname/output.json b/tests/test-suite/test-suite-data/h-adr/justaname/output.json deleted file mode 100644 index b6e96ad..0000000 --- a/tests/test-suite/test-suite-data/h-adr/justaname/output.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "items": [{ - "type": ["h-adr"], - "properties": { - "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-adr/justaname/test.json b/tests/test-suite/test-suite-data/h-adr/justaname/test.json deleted file mode 100644 index bad55a2..0000000 --- a/tests/test-suite/test-suite-data/h-adr/justaname/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a name", - "description": "h-adr", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-adr/simpleproperties/input.html b/tests/test-suite/test-suite-data/h-adr/simpleproperties/input.html deleted file mode 100644 index 02e8805..0000000 --- a/tests/test-suite/test-suite-data/h-adr/simpleproperties/input.html +++ /dev/null @@ -1,8 +0,0 @@ -

- 665 3rd St. - Suite 207 - San Francisco, - CA - 94107 - U.S.A. -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-adr/simpleproperties/output.json b/tests/test-suite/test-suite-data/h-adr/simpleproperties/output.json deleted file mode 100644 index 5e6fa40..0000000 --- a/tests/test-suite/test-suite-data/h-adr/simpleproperties/output.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "items": [{ - "type": ["h-adr"], - "properties": { - "street-address": ["665 3rd St."], - "extended-address": ["Suite 207"], - "locality": ["San Francisco"], - "region": ["CA"], - "postal-code": ["94107"], - "country-name": ["U.S.A."], - "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-adr/simpleproperties/test.json b/tests/test-suite/test-suite-data/h-adr/simpleproperties/test.json deleted file mode 100644 index f0f4211..0000000 --- a/tests/test-suite/test-suite-data/h-adr/simpleproperties/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Broken into properties", - "description": "h-adr", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-adr/suite.json b/tests/test-suite/test-suite-data/h-adr/suite.json deleted file mode 100644 index 7620b31..0000000 --- a/tests/test-suite/test-suite-data/h-adr/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "h-adr parsing tests", - "description": "This page was design to test the parsing of h-adr. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/childimplied/input.html b/tests/test-suite/test-suite-data/h-card/childimplied/input.html deleted file mode 100644 index 0811fbd..0000000 --- a/tests/test-suite/test-suite-data/h-card/childimplied/input.html +++ /dev/null @@ -1,6 +0,0 @@ - -
-

Håkon Wium Lie

- -
-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/childimplied/output.json b/tests/test-suite/test-suite-data/h-card/childimplied/output.json deleted file mode 100644 index eefda51..0000000 --- a/tests/test-suite/test-suite-data/h-card/childimplied/output.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["Håkon Wium Lie"], - "photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/9/96/H%C3%A5kon-Wium-Lie-2009-03.jpg/215px-H%C3%A5kon-Wium-Lie-2009-03.jpg"], - "url": ["http://people.opera.com/howcome/"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/childimplied/test.json b/tests/test-suite/test-suite-data/h-card/childimplied/test.json deleted file mode 100644 index 0f0a818..0000000 --- a/tests/test-suite/test-suite-data/h-card/childimplied/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Single child implied pattern", - "description": "h-card", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/extendeddescription/input.html b/tests/test-suite/test-suite-data/h-card/extendeddescription/input.html deleted file mode 100644 index 437f9ea..0000000 --- a/tests/test-suite/test-suite-data/h-card/extendeddescription/input.html +++ /dev/null @@ -1,10 +0,0 @@ -
- photo of Mitchell -

- Mitchell Baker - (@MitchellBaker) - Mozilla Foundation -

-

Mitchell is responsible for setting the direction and scope of the Mozilla Foundation and its activities.

-

Strategy and Leadership

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/extendeddescription/output.json b/tests/test-suite/test-suite-data/h-card/extendeddescription/output.json deleted file mode 100644 index 5233ce3..0000000 --- a/tests/test-suite/test-suite-data/h-card/extendeddescription/output.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "photo": ["http://blog.mozilla.org/press/files/2012/04/mitchell-baker.jpg"], - "url": ["http://blog.lizardwrangler.com/", "https://twitter.com/MitchellBaker"], - "name": ["Mitchell Baker"], - "org": ["Mozilla Foundation"], - "note": ["Mitchell is responsible for setting the direction and scope of the Mozilla Foundation and its activities."], - "category": ["Strategy", "Leadership"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/extendeddescription/test.json b/tests/test-suite/test-suite-data/h-card/extendeddescription/test.json deleted file mode 100644 index bf6f11b..0000000 --- a/tests/test-suite/test-suite-data/h-card/extendeddescription/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "An extended description", - "description": "h-card", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/hcard/input.html b/tests/test-suite/test-suite-data/h-card/hcard/input.html deleted file mode 100644 index d255904..0000000 --- a/tests/test-suite/test-suite-data/h-card/hcard/input.html +++ /dev/null @@ -1,4 +0,0 @@ -
- Mitchell Baker - (Mozilla Foundation) -
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/hcard/output.json b/tests/test-suite/test-suite-data/h-card/hcard/output.json deleted file mode 100644 index 1ddf181..0000000 --- a/tests/test-suite/test-suite-data/h-card/hcard/output.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "url": ["http://blog.lizardwrangler.com/"], - "name": ["Mitchell Baker"], - "org": [{ - "value": "Mozilla Foundation", - "type": ["h-card"], - "properties": { - "name": ["Mozilla Foundation"], - "url": ["http://mozilla.org/"] - } - }] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Mozilla Foundation"], - "url": ["http://mozilla.org/"] - } - }] - } \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/hcard/test.json b/tests/test-suite/test-suite-data/h-card/hcard/test.json deleted file mode 100644 index da1eb02..0000000 --- a/tests/test-suite/test-suite-data/h-card/hcard/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Organization marked-up with h-card", - "description": "h-card", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/horghcard/input.html b/tests/test-suite/test-suite-data/h-card/horghcard/input.html deleted file mode 100644 index 90c4bd6..0000000 --- a/tests/test-suite/test-suite-data/h-card/horghcard/input.html +++ /dev/null @@ -1,4 +0,0 @@ -
- Mitchell Baker - (Mozilla Foundation) -
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/horghcard/output.json b/tests/test-suite/test-suite-data/h-card/horghcard/output.json deleted file mode 100644 index 2471a76..0000000 --- a/tests/test-suite/test-suite-data/h-card/horghcard/output.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["Mitchell Baker"], - "url": ["http://blog.lizardwrangler.com/"], - "org": [{ - "value": "Mozilla Foundation", - "type": ["h-card", "h-org"], - "properties": { - "name": ["Mozilla Foundation"], - "url": ["http://mozilla.org/"] - } - }] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Mozilla Foundation"], - "url": ["http://mozilla.org/"] - } - },{ - "type": ["h-org"], - "properties": { - "name": ["Mozilla Foundation"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/horghcard/test.json b/tests/test-suite/test-suite-data/h-card/horghcard/test.json deleted file mode 100644 index 552ba36..0000000 --- a/tests/test-suite/test-suite-data/h-card/horghcard/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Organization marked-up with h-card and h-org", - "description": "h-card", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/hyperlinkedphoto/input.html b/tests/test-suite/test-suite-data/h-card/hyperlinkedphoto/input.html deleted file mode 100644 index 3a30af8..0000000 --- a/tests/test-suite/test-suite-data/h-card/hyperlinkedphoto/input.html +++ /dev/null @@ -1,3 +0,0 @@ - - Rohit Khare - \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/hyperlinkedphoto/output.json b/tests/test-suite/test-suite-data/h-card/hyperlinkedphoto/output.json deleted file mode 100644 index 3f1339a..0000000 --- a/tests/test-suite/test-suite-data/h-card/hyperlinkedphoto/output.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["Rohit Khare"], - "photo": ["https://twimg0-a.akamaihd.net/profile_images/53307499/180px-Rohit-sq.jpg"], - "url": ["http://rohit.khare.org/"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/hyperlinkedphoto/test.json b/tests/test-suite/test-suite-data/h-card/hyperlinkedphoto/test.json deleted file mode 100644 index 1fc0bd3..0000000 --- a/tests/test-suite/test-suite-data/h-card/hyperlinkedphoto/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "A hyperlinked photo", - "description": "h-card", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/justahyperlink/input.html b/tests/test-suite/test-suite-data/h-card/justahyperlink/input.html deleted file mode 100644 index b450b2b..0000000 --- a/tests/test-suite/test-suite-data/h-card/justahyperlink/input.html +++ /dev/null @@ -1 +0,0 @@ -Ben Ward \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/justahyperlink/output.json b/tests/test-suite/test-suite-data/h-card/justahyperlink/output.json deleted file mode 100644 index fa6c688..0000000 --- a/tests/test-suite/test-suite-data/h-card/justahyperlink/output.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["Ben Ward"], - "url": ["http://benward.me/"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/justahyperlink/test.json b/tests/test-suite/test-suite-data/h-card/justahyperlink/test.json deleted file mode 100644 index 06f97da..0000000 --- a/tests/test-suite/test-suite-data/h-card/justahyperlink/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a hyperlink", - "description": "h-card", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/justaname/input.html b/tests/test-suite/test-suite-data/h-card/justaname/input.html deleted file mode 100644 index 3cecf0e..0000000 --- a/tests/test-suite/test-suite-data/h-card/justaname/input.html +++ /dev/null @@ -1 +0,0 @@ -

Frances Berriman

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/justaname/output.json b/tests/test-suite/test-suite-data/h-card/justaname/output.json deleted file mode 100644 index 62f2748..0000000 --- a/tests/test-suite/test-suite-data/h-card/justaname/output.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["Frances Berriman"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/justaname/test.json b/tests/test-suite/test-suite-data/h-card/justaname/test.json deleted file mode 100644 index 2121030..0000000 --- a/tests/test-suite/test-suite-data/h-card/justaname/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a name", - "description": "h-card", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/nested/input.html b/tests/test-suite/test-suite-data/h-card/nested/input.html deleted file mode 100644 index f208f41..0000000 --- a/tests/test-suite/test-suite-data/h-card/nested/input.html +++ /dev/null @@ -1,4 +0,0 @@ -
- Mitchell Baker - (Mozilla Foundation) -
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/nested/output.json b/tests/test-suite/test-suite-data/h-card/nested/output.json deleted file mode 100644 index 5a73c60..0000000 --- a/tests/test-suite/test-suite-data/h-card/nested/output.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["Mitchell Baker"], - "url": ["http://blog.lizardwrangler.com/"] - }, - "children": [{ - "type": ["h-card", "h-org"], - "properties": { - "name": ["Mozilla Foundation"], - "url": ["http://mozilla.org/"] - } - }] - },{ - "type": ["h-card"], - "properties": { - "name": ["Mozilla Foundation"], - "url": ["http://mozilla.org/"] - } - },{ - "type": ["h-org"], - "properties": { - "name": ["Mozilla Foundation"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/nested/test.json b/tests/test-suite/test-suite-data/h-card/nested/test.json deleted file mode 100644 index 1684895..0000000 --- a/tests/test-suite/test-suite-data/h-card/nested/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Additional nested microformats", - "description": "h-card", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/p-property/input.html b/tests/test-suite/test-suite-data/h-card/p-property/input.html deleted file mode 100644 index ec50e04..0000000 --- a/tests/test-suite/test-suite-data/h-card/p-property/input.html +++ /dev/null @@ -1,21 +0,0 @@ -
- - - John - P - Doe - - - - -
BSc
-
BA - - - PHD - company logos - - Madgex - Mozilla - -
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/p-property/output.json b/tests/test-suite/test-suite-data/h-card/p-property/output.json deleted file mode 100644 index bd04303..0000000 --- a/tests/test-suite/test-suite-data/h-card/p-property/output.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["John Doe"], - "given-name": ["John"], - "additional-name": ["Peter"], - "family-name": ["Doe"], - "honorific-suffix": ["MSc","PHD"], - "org": ["Madgex", "Mozilla"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/p-property/test.json b/tests/test-suite/test-suite-data/h-card/p-property/test.json deleted file mode 100644 index 68f9222..0000000 --- a/tests/test-suite/test-suite-data/h-card/p-property/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "p-property", - "description": "h-card", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-card/suite.json b/tests/test-suite/test-suite-data/h-card/suite.json deleted file mode 100644 index 84eb683..0000000 --- a/tests/test-suite/test-suite-data/h-card/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "h-card parsing tests", - "description": "This page was design to test the parsing of h-card. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-entry/justahyperlink/input.html b/tests/test-suite/test-suite-data/h-entry/justahyperlink/input.html deleted file mode 100644 index 9d377b1..0000000 --- a/tests/test-suite/test-suite-data/h-entry/justahyperlink/input.html +++ /dev/null @@ -1 +0,0 @@ -microformats.org at 7 \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-entry/justahyperlink/output.json b/tests/test-suite/test-suite-data/h-entry/justahyperlink/output.json deleted file mode 100644 index 9ee4ebd..0000000 --- a/tests/test-suite/test-suite-data/h-entry/justahyperlink/output.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "items": [{ - "type": ["h-entry"], - "properties": { - "name": ["microformats.org at 7"], - "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-entry/justahyperlink/test.json b/tests/test-suite/test-suite-data/h-entry/justahyperlink/test.json deleted file mode 100644 index 514df28..0000000 --- a/tests/test-suite/test-suite-data/h-entry/justahyperlink/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a hyperlink", - "description": "h-entry", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-entry/justaname/input.html b/tests/test-suite/test-suite-data/h-entry/justaname/input.html deleted file mode 100644 index 9c69413..0000000 --- a/tests/test-suite/test-suite-data/h-entry/justaname/input.html +++ /dev/null @@ -1 +0,0 @@ -

microformats.org at 7

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-entry/justaname/output.json b/tests/test-suite/test-suite-data/h-entry/justaname/output.json deleted file mode 100644 index ea8e13b..0000000 --- a/tests/test-suite/test-suite-data/h-entry/justaname/output.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "items": [{ - "type": ["h-entry"], - "properties": { - "name": ["microformats.org at 7"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-entry/justaname/test.json b/tests/test-suite/test-suite-data/h-entry/justaname/test.json deleted file mode 100644 index 1f9562b..0000000 --- a/tests/test-suite/test-suite-data/h-entry/justaname/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a name", - "description": "h-entry", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-entry/suite.json b/tests/test-suite/test-suite-data/h-entry/suite.json deleted file mode 100644 index 86f62ab..0000000 --- a/tests/test-suite/test-suite-data/h-entry/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "h-entry parsing tests", - "description": "This page was design to test the parsing of h-entry. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-entry/summarycontent/input.html b/tests/test-suite/test-suite-data/h-entry/summarycontent/input.html deleted file mode 100644 index 53ba18c..0000000 --- a/tests/test-suite/test-suite-data/h-entry/summarycontent/input.html +++ /dev/null @@ -1,19 +0,0 @@ -
-

microformats.org at 7

-
-

Last week the microformats.org community - celebrated its 7th birthday at a gathering hosted by Mozilla in - San Francisco and recognized accomplishments, challenges, and - opportunities.

- -

The microformats tagline “humans first, machines second” - forms the basis of many of our - principles, and - in that regard, we’d like to recognize a few people and - thank them for their years of volunteer service

-
-

Updated - by - Tantek -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-entry/summarycontent/output.json b/tests/test-suite/test-suite-data/h-entry/summarycontent/output.json deleted file mode 100644 index 5a30958..0000000 --- a/tests/test-suite/test-suite-data/h-entry/summarycontent/output.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "items": [{ - "type": ["h-entry"], - "properties": { - "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"], - "name": ["microformats.org at 7"], - "content": [{ - "value": "Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service", - "html": "\n

Last week the microformats.org community \n celebrated its 7th birthday at a gathering hosted by Mozilla in \n San Francisco and recognized accomplishments, challenges, and \n opportunities.

\n\n

The microformats tagline “humans first, machines second” \n forms the basis of many of our \n principles, and \n in that regard, we’d like to recognize a few people and \n thank them for their years of volunteer service

\n " - }], - "updated": ["2012-06-25T17:08:26"], - "author": [{ - "value": "Tantek", - "type": ["h-card"], - "properties": { - "name": ["Tantek"], - "url": ["http://tantek.com/"] - } - }] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Tantek"], - "url": ["http://tantek.com/"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-entry/summarycontent/test.json b/tests/test-suite/test-suite-data/h-entry/summarycontent/test.json deleted file mode 100644 index 762ba5a..0000000 --- a/tests/test-suite/test-suite-data/h-entry/summarycontent/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Entry with summary and content", - "description": "h-entry", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-entry/u-property/input.html b/tests/test-suite/test-suite-data/h-entry/u-property/input.html deleted file mode 100644 index 344adc2..0000000 --- a/tests/test-suite/test-suite-data/h-entry/u-property/input.html +++ /dev/null @@ -1,28 +0,0 @@ -
-

microformats.org at 7

- - -

- - Article permalink -

-

- http://microformats.org/ - - 2012/06/25/microformats-org-at-7 -

- -

Article permalink

- - company logos - - microformats.org - - - company logos - - - - value-class-pattern - -

http://microformats.org/discuss

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-entry/u-property/output.json b/tests/test-suite/test-suite-data/h-entry/u-property/output.json deleted file mode 100644 index 8346086..0000000 --- a/tests/test-suite/test-suite-data/h-entry/u-property/output.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "items": [{ - "type": ["h-entry"], - "properties": { - "name": ["microformats.org at 7"], - "url": [ - "http://microformats.org/", - "http://microformats.org/2012/06/25/microformats-org-at-7", - "http://microformats.org/2012/06/25/microformats-org-at-7", - "http://microformats.org/", - "http://microformats.org/wiki/microformats2-parsing", - "http://microformats.org/wiki/value-class-pattern", - "http://microformats.org/wiki/", - "http://microformats.org/discuss" - ], - "photo": ["http://example.com/images/logo.gif"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-entry/u-property/test.json b/tests/test-suite/test-suite-data/h-entry/u-property/test.json deleted file mode 100644 index 7583d1b..0000000 --- a/tests/test-suite/test-suite-data/h-entry/u-property/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "u-property", - "description": "h-entry", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/ampm/input.html b/tests/test-suite/test-suite-data/h-event/ampm/input.html deleted file mode 100644 index e7010d5..0000000 --- a/tests/test-suite/test-suite-data/h-event/ampm/input.html +++ /dev/null @@ -1,41 +0,0 @@ - - The 4th Microformat party will be on - - \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/ampm/output.json b/tests/test-suite/test-suite-data/h-event/ampm/output.json deleted file mode 100644 index 812afaa..0000000 --- a/tests/test-suite/test-suite-data/h-event/ampm/output.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "items": [{ - "type": ["h-event"], - "properties": { - "name": ["The 4th Microformat party"], - "start": [ - "2009-06-26T19:00:00", - "2009-06-26T07:00:00", - "2009-06-26T19:00:00", - "2009-06-26T19:00:00", - "2009-06-26T19:00:00", - "2009-06-26T19:00:00", - "2009-06-26T19:00:00", - "2009-06-26T19:00:00", - "2009-06-26T07:00:00" - ] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/ampm/test.json b/tests/test-suite/test-suite-data/h-event/ampm/test.json deleted file mode 100644 index 1938169..0000000 --- a/tests/test-suite/test-suite-data/h-event/ampm/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Meridiem time formats (am pm)", - "description": "h-event", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/attendees/input.html b/tests/test-suite/test-suite-data/h-event/attendees/input.html deleted file mode 100644 index 06f1bfa..0000000 --- a/tests/test-suite/test-suite-data/h-event/attendees/input.html +++ /dev/null @@ -1,12 +0,0 @@ -
- CPJ Online Press Freedom Summit - () in - San Francisco. - Attendees: - -
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/attendees/output.json b/tests/test-suite/test-suite-data/h-event/attendees/output.json deleted file mode 100644 index f85fa22..0000000 --- a/tests/test-suite/test-suite-data/h-event/attendees/output.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "items": [{ - "type": ["h-event"], - "properties": { - "name": ["CPJ Online Press Freedom Summit"], - "start": ["2012-10-10"], - "location": ["San Francisco"], - "attendee": [{ - "value": "Brian Warner", - "type": ["h-card"], - "properties": { - "name": ["Brian Warner"] - } - },{ - "value": "Kyle Machulis", - "type": ["h-card"], - "properties": { - "name": ["Kyle Machulis"] - } - },{ - "value": "Tantek Çelik", - "type": ["h-card"], - "properties": { - "name": ["Tantek Çelik"] - } - },{ - "value": "Sid Sutter", - "type": ["h-card"], - "properties": { - "name": ["Sid Sutter"] - } - }] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Brian Warner"] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Kyle Machulis"] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Tantek Çelik"] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Sid Sutter"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/attendees/test.json b/tests/test-suite/test-suite-data/h-event/attendees/test.json deleted file mode 100644 index 92cadfb..0000000 --- a/tests/test-suite/test-suite-data/h-event/attendees/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "h-event with attendees", - "description": "h-event", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/combining/input.html b/tests/test-suite/test-suite-data/h-event/combining/input.html deleted file mode 100644 index 8c3503c..0000000 --- a/tests/test-suite/test-suite-data/h-event/combining/input.html +++ /dev/null @@ -1,13 +0,0 @@ -
- - IndieWebCamp 2012 - - from - to at - - Geoloqi, - 920 SW 3rd Ave. Suite 400, - Portland, - OR - -
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/combining/output.json b/tests/test-suite/test-suite-data/h-event/combining/output.json deleted file mode 100644 index 18acbbd..0000000 --- a/tests/test-suite/test-suite-data/h-event/combining/output.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "items": [{ - "type": ["h-event"], - "properties": { - "name": ["IndieWebCamp 2012"], - "url": ["http://indiewebcamp.com/2012"], - "start": ["2012-06-30"], - "end": ["2012-07-01"], - "location": [{ - "value": "Geoloqi, 920 SW 3rd Ave. Suite 400, Portland, OR", - "type": ["h-card"], - "properties": { - "name": ["Geoloqi"], - "org": ["Geoloqi"], - "url": ["http://geoloqi.com/"], - "street-address": ["920 SW 3rd Ave. Suite 400"], - "locality": ["Portland"], - "region": ["Oregon"] - } - }] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Geoloqi"], - "org": ["Geoloqi"], - "url": ["http://geoloqi.com/"], - "street-address": ["920 SW 3rd Ave. Suite 400"], - "locality": ["Portland"], - "region": ["Oregon"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/combining/test.json b/tests/test-suite/test-suite-data/h-event/combining/test.json deleted file mode 100644 index ed8a707..0000000 --- a/tests/test-suite/test-suite-data/h-event/combining/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Event with location", - "description": "h-event", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/concatenate/input.html b/tests/test-suite/test-suite-data/h-event/concatenate/input.html deleted file mode 100644 index 946e810..0000000 --- a/tests/test-suite/test-suite-data/h-event/concatenate/input.html +++ /dev/null @@ -1,7 +0,0 @@ - - The 4th Microformat party will be on - - , from - to - . - \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/concatenate/output.json b/tests/test-suite/test-suite-data/h-event/concatenate/output.json deleted file mode 100644 index ccc2df7..0000000 --- a/tests/test-suite/test-suite-data/h-event/concatenate/output.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "items": [{ - "type": ["h-event"], - "properties": { - "name": ["The 4th Microformat party"], - "start": ["2009-06-26T19:00:00"], - "end": ["2009-06-26T22:00:00"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/concatenate/test.json b/tests/test-suite/test-suite-data/h-event/concatenate/test.json deleted file mode 100644 index f3870b0..0000000 --- a/tests/test-suite/test-suite-data/h-event/concatenate/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Concatenate multiple datetime elements", - "description": "h-event", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/dt-property/input.html b/tests/test-suite/test-suite-data/h-event/dt-property/input.html deleted file mode 100644 index 66dc530..0000000 --- a/tests/test-suite/test-suite-data/h-event/dt-property/input.html +++ /dev/null @@ -1,23 +0,0 @@ - - The party will be on - -

- - March 14th 2013 -

-

- , from - 07:00:00am -

- -

- - - Just added, - Removed -

- June 29 - -

2013-07-02

- -
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/dt-property/output.json b/tests/test-suite/test-suite-data/h-event/dt-property/output.json deleted file mode 100644 index 56e74ee..0000000 --- a/tests/test-suite/test-suite-data/h-event/dt-property/output.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "items": [{ - "type": ["h-event"], - "properties": { - "name": ["The party"], - "start": [ - "2013-03-14", - "2013-06-25T07:00:00", - "2013-06-26", - "2013-06-27", - "2013-06-28", - "2013-06-29", - "2013-07-01", - "2013-07-02" - ] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/dt-property/test.json b/tests/test-suite/test-suite-data/h-event/dt-property/test.json deleted file mode 100644 index a4d5341..0000000 --- a/tests/test-suite/test-suite-data/h-event/dt-property/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "dt-property", - "description": "h-event", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/justahyperlink/input.html b/tests/test-suite/test-suite-data/h-event/justahyperlink/input.html deleted file mode 100644 index 3c814f6..0000000 --- a/tests/test-suite/test-suite-data/h-event/justahyperlink/input.html +++ /dev/null @@ -1 +0,0 @@ -IndieWebCamp 2012 \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/justahyperlink/output.json b/tests/test-suite/test-suite-data/h-event/justahyperlink/output.json deleted file mode 100644 index b858f23..0000000 --- a/tests/test-suite/test-suite-data/h-event/justahyperlink/output.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "items": [{ - "type": ["h-event"], - "properties": { - "name": ["IndieWebCamp 2012"], - "url": ["http://indiewebcamp.com/2012"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/justahyperlink/test.json b/tests/test-suite/test-suite-data/h-event/justahyperlink/test.json deleted file mode 100644 index b20f2a4..0000000 --- a/tests/test-suite/test-suite-data/h-event/justahyperlink/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a hyperlink", - "description": "h-event", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/justaname/input.html b/tests/test-suite/test-suite-data/h-event/justaname/input.html deleted file mode 100644 index 3cc7ff3..0000000 --- a/tests/test-suite/test-suite-data/h-event/justaname/input.html +++ /dev/null @@ -1 +0,0 @@ -

IndieWebCamp 2012

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/justaname/output.json b/tests/test-suite/test-suite-data/h-event/justaname/output.json deleted file mode 100644 index 07bdd81..0000000 --- a/tests/test-suite/test-suite-data/h-event/justaname/output.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "items": [{ - "type": ["h-event"], - "properties": { - "name": ["IndieWebCamp 2012"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/justaname/test.json b/tests/test-suite/test-suite-data/h-event/justaname/test.json deleted file mode 100644 index 8a997d0..0000000 --- a/tests/test-suite/test-suite-data/h-event/justaname/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a name", - "description": "h-event", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/suite.json b/tests/test-suite/test-suite-data/h-event/suite.json deleted file mode 100644 index eb7c800..0000000 --- a/tests/test-suite/test-suite-data/h-event/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "h-event parsing tests", - "description": "This page was design to test the parsing of h-event. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/time/input.html b/tests/test-suite/test-suite-data/h-event/time/input.html deleted file mode 100644 index 9d04248..0000000 --- a/tests/test-suite/test-suite-data/h-event/time/input.html +++ /dev/null @@ -1,47 +0,0 @@ - - The 4th Microformat party will be on - - \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/time/output.json b/tests/test-suite/test-suite-data/h-event/time/output.json deleted file mode 100644 index b80d3e5..0000000 --- a/tests/test-suite/test-suite-data/h-event/time/output.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "items": [{ - "type": ["h-event"], - "properties": { - "name": ["The 4th Microformat party"], - "start": [ - "2009-06-26T19:00:00-0800", - "2009-06-26T19:00:00-0800", - "2009-06-26T19:00:00+0800", - "2009-06-26T19:00:00Z", - "2009-06-26T19:00:00", - "2009-06-26T19:00:00-0800", - "2009-06-26T19:00:00+0800", - "2009-06-26T19:00:00Z", - "2009-06-26T19:00:00" - ], - "end": [ - "2013-034", - "2013-06-27 15:34:00" - ] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-event/time/test.json b/tests/test-suite/test-suite-data/h-event/time/test.json deleted file mode 100644 index def2add..0000000 --- a/tests/test-suite/test-suite-data/h-event/time/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Time formats", - "description": "h-event", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/abbrpattern/input.html b/tests/test-suite/test-suite-data/h-geo/abbrpattern/input.html deleted file mode 100644 index f1dbd31..0000000 --- a/tests/test-suite/test-suite-data/h-geo/abbrpattern/input.html +++ /dev/null @@ -1,4 +0,0 @@ -

- N 37° 24.491, - W 122° 08.313 -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/abbrpattern/output.json b/tests/test-suite/test-suite-data/h-geo/abbrpattern/output.json deleted file mode 100644 index fbf1669..0000000 --- a/tests/test-suite/test-suite-data/h-geo/abbrpattern/output.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "items": [{ - "type": ["h-geo"], - "properties": { - "latitude": ["37.408183"], - "longitude": ["-122.13855"], - "name": ["N 37° 24.491, W 122° 08.313"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/abbrpattern/test.json b/tests/test-suite/test-suite-data/h-geo/abbrpattern/test.json deleted file mode 100644 index 2b33256..0000000 --- a/tests/test-suite/test-suite-data/h-geo/abbrpattern/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "The Tag Pattern", - "description": "h-geo", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/altitude/input.html b/tests/test-suite/test-suite-data/h-geo/altitude/input.html deleted file mode 100644 index 4694c88..0000000 --- a/tests/test-suite/test-suite-data/h-geo/altitude/input.html +++ /dev/null @@ -1,8 +0,0 @@ -

My favourite hill in the lakes is - - Pen-y-ghent - (Geo: 54.155278, - -2.249722). It - raises to 694m. - -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/altitude/output.json b/tests/test-suite/test-suite-data/h-geo/altitude/output.json deleted file mode 100644 index fdc7b5d..0000000 --- a/tests/test-suite/test-suite-data/h-geo/altitude/output.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "items": [{ - "type": ["h-geo"], - "properties": { - "name": ["Pen-y-ghent"], - "latitude": ["54.155278"], - "longitude": ["-2.249722"], - "altitude": ["694"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/altitude/test.json b/tests/test-suite/test-suite-data/h-geo/altitude/test.json deleted file mode 100644 index 50c08c9..0000000 --- a/tests/test-suite/test-suite-data/h-geo/altitude/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Geo with a altitude property", - "description": "h-geo", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/hidden/input.html b/tests/test-suite/test-suite-data/h-geo/hidden/input.html deleted file mode 100644 index 71bce2b..0000000 --- a/tests/test-suite/test-suite-data/h-geo/hidden/input.html +++ /dev/null @@ -1,10 +0,0 @@ -

- The Bricklayer's Arms - - - - - - - -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/hidden/output.json b/tests/test-suite/test-suite-data/h-geo/hidden/output.json deleted file mode 100644 index 397f280..0000000 --- a/tests/test-suite/test-suite-data/h-geo/hidden/output.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "items": [{ - "type": ["h-geo"], - "properties": { - "latitude": ["51.513458"], - "longitude": ["-0.14812"], - "name": ["The Bricklayer's Arms"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/hidden/test.json b/tests/test-suite/test-suite-data/h-geo/hidden/test.json deleted file mode 100644 index fe15150..0000000 --- a/tests/test-suite/test-suite-data/h-geo/hidden/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "The tag pattern", - "description": "h-geo", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/justaname/input.html b/tests/test-suite/test-suite-data/h-geo/justaname/input.html deleted file mode 100644 index d465e56..0000000 --- a/tests/test-suite/test-suite-data/h-geo/justaname/input.html +++ /dev/null @@ -1,3 +0,0 @@ -

On my way to The Bricklayer's Arms - (Geo: 51.513458;-0.14812) -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/justaname/output.json b/tests/test-suite/test-suite-data/h-geo/justaname/output.json deleted file mode 100644 index a1f5099..0000000 --- a/tests/test-suite/test-suite-data/h-geo/justaname/output.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "items": [{ - "type": ["h-geo"], - "properties": { - "name": ["51.513458;-0.14812"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/justaname/test.json b/tests/test-suite/test-suite-data/h-geo/justaname/test.json deleted file mode 100644 index d2518a4..0000000 --- a/tests/test-suite/test-suite-data/h-geo/justaname/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a name", - "description": "h-geo", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/simpleproperties/input.html b/tests/test-suite/test-suite-data/h-geo/simpleproperties/input.html deleted file mode 100644 index 1392cf6..0000000 --- a/tests/test-suite/test-suite-data/h-geo/simpleproperties/input.html +++ /dev/null @@ -1,5 +0,0 @@ -

We are meeting at - The Bricklayer's Arms - (Geo: 51.513458: - -0.14812) -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/simpleproperties/output.json b/tests/test-suite/test-suite-data/h-geo/simpleproperties/output.json deleted file mode 100644 index 4e75c63..0000000 --- a/tests/test-suite/test-suite-data/h-geo/simpleproperties/output.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "items": [{ - "type": ["h-geo"], - "properties": { - "name": ["The Bricklayer's Arms"], - "latitude": ["51.513458"], - "longitude": ["-0.14812"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/simpleproperties/test.json b/tests/test-suite/test-suite-data/h-geo/simpleproperties/test.json deleted file mode 100644 index 9b3bac4..0000000 --- a/tests/test-suite/test-suite-data/h-geo/simpleproperties/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Broken into properties", - "description": "h-geo", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/suite.json b/tests/test-suite/test-suite-data/h-geo/suite.json deleted file mode 100644 index a16682b..0000000 --- a/tests/test-suite/test-suite-data/h-geo/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "h-geo parsing tests", - "description": "This page was design to test the parsing of h-geo. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/valuetitleclass/input.html b/tests/test-suite/test-suite-data/h-geo/valuetitleclass/input.html deleted file mode 100644 index 3dda4cc..0000000 --- a/tests/test-suite/test-suite-data/h-geo/valuetitleclass/input.html +++ /dev/null @@ -1,10 +0,0 @@ -

- - - N 51° 51.345, - - - W -0° 14.812 - - -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/valuetitleclass/output.json b/tests/test-suite/test-suite-data/h-geo/valuetitleclass/output.json deleted file mode 100644 index 1aa2631..0000000 --- a/tests/test-suite/test-suite-data/h-geo/valuetitleclass/output.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "items": [{ - "type": ["h-geo"], - "properties": { - "latitude": ["51.513458"], - "longitude": ["-0.14812"], - "name": ["N 51° 51.345, W -0° 14.812"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-geo/valuetitleclass/test.json b/tests/test-suite/test-suite-data/h-geo/valuetitleclass/test.json deleted file mode 100644 index 78d6c9b..0000000 --- a/tests/test-suite/test-suite-data/h-geo/valuetitleclass/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Value-title class pattern", - "description": "h-geo", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-news/all/input.html b/tests/test-suite/test-suite-data/h-news/all/input.html deleted file mode 100644 index ebac654..0000000 --- a/tests/test-suite/test-suite-data/h-news/all/input.html +++ /dev/null @@ -1,35 +0,0 @@ -
-
-

microformats.org at 7

-
-

Last week the microformats.org community - celebrated its 7th birthday at a gathering hosted by Mozilla in - San Francisco and recognized accomplishments, challenges, and - opportunities.

- -

The microformats tagline “humans first, machines second” - forms the basis of many of our - principles, and - in that regard, we’d like to recognize a few people and - thank them for their years of volunteer service

-
-

Updated - by - Tantek -

-
- -

- - (Geo: 37.774921;-122.445202) - - microformats.org - -

-

- Publishing policy -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-news/all/output.json b/tests/test-suite/test-suite-data/h-news/all/output.json deleted file mode 100644 index c1e94a7..0000000 --- a/tests/test-suite/test-suite-data/h-news/all/output.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "items": [{ - "type": ["h-news"], - "properties": { - "entry": [{ - "value": "microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek", - "type": ["h-entry"], - "properties": { - "name": ["microformats.org at 7"], - "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"], - "content": [{ - "value": "Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service", - "html": "\n

Last week the microformats.org community \n celebrated its 7th birthday at a gathering hosted by Mozilla in \n San Francisco and recognized accomplishments, challenges, and \n opportunities.

\n\n

The microformats tagline “humans first, machines second” \n forms the basis of many of our \n principles, and \n in that regard, we’d like to recognize a few people and \n thank them for their years of volunteer service

\n " - }], - "summary": ["Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities."], - "updated": ["2012-06-25T17:08:26"], - "author": { - "value": "Tantek", - "type": ["h-card"], - "properties": { - "name": ["Tantek"], - "url": ["http://tantek.com/"] - } - } - } - }], - "dateline": [{ - "value": "San Francisco, CA", - "type": ["h-adr"], - "properties": { - "locality": ["San Francisco"], - "region": ["CA"], - "name": ["San Francisco, CA"] - } - }], - "geo": ["37.774921;-122.445202"], - "source-org": [{ - "value": "microformats.org", - "type": ["h-card"], - "properties": { - "name": ["microformats.org"], - "url": ["http://microformats.org/"] - } - }], - "principles": ["http://microformats.org/wiki/Category:public_domain_license"], - "name": ["microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek San Francisco, CA (Geo: 37.774921;-122.445202) microformats.org Publishing policy"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-news/all/test.json b/tests/test-suite/test-suite-data/h-news/all/test.json deleted file mode 100644 index 76ce46b..0000000 --- a/tests/test-suite/test-suite-data/h-news/all/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "With dateline h-card", - "description": "h-news", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-news/minimum/input.html b/tests/test-suite/test-suite-data/h-news/minimum/input.html deleted file mode 100644 index 8d0fe48..0000000 --- a/tests/test-suite/test-suite-data/h-news/minimum/input.html +++ /dev/null @@ -1,24 +0,0 @@ -
-
-

microformats.org at 7

-
-

Last week the microformats.org community - celebrated its 7th birthday at a gathering hosted by Mozilla in - San Francisco and recognized accomplishments, challenges, and - opportunities.

- -

The microformats tagline “humans first, machines second” - forms the basis of many of our - principles, and - in that regard, we’d like to recognize a few people and - thank them for their years of volunteer service

-
-

Updated - by - Tantek -

-
-

- microformats.org -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-news/minimum/output.json b/tests/test-suite/test-suite-data/h-news/minimum/output.json deleted file mode 100644 index 3bd6c08..0000000 --- a/tests/test-suite/test-suite-data/h-news/minimum/output.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "items": [{ - "type": ["h-news"], - "properties": { - "entry": [{ - "value": "microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek", - "type": ["h-entry"], - "properties": { - "name": ["microformats.org at 7"], - "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"], - "content": [{ - "value": "Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service", - "html": "\n

Last week the microformats.org community \n celebrated its 7th birthday at a gathering hosted by Mozilla in \n San Francisco and recognized accomplishments, challenges, and \n opportunities.

\n\n

The microformats tagline “humans first, machines second” \n forms the basis of many of our \n principles, and \n in that regard, we’d like to recognize a few people and \n thank them for their years of volunteer service

\n " - }], - "updated": ["2012-06-25T17:08:26"], - "author": { - "value": "Tantek", - "type": ["h-card"], - "properties": { - "name": ["Tantek"], - "url": ["http://tantek.com/"] - } - } - } - }], - "source-org": [{ - "value": "microformats.org", - "type": ["h-card"], - "properties": { - "name": ["microformats.org"], - "url": ["http://microformats.org/"] - } - }], - "name": ["microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek microformats.org"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-news/minimum/test.json b/tests/test-suite/test-suite-data/h-news/minimum/test.json deleted file mode 100644 index 4e9162e..0000000 --- a/tests/test-suite/test-suite-data/h-news/minimum/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Minimum properties", - "description": "h-news", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-news/suite.json b/tests/test-suite/test-suite-data/h-news/suite.json deleted file mode 100644 index 7fb5ff9..0000000 --- a/tests/test-suite/test-suite-data/h-news/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "h-news parsing tests", - "description": "This page was design to test the parsing of h-news. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-org/hyperlink/input.html b/tests/test-suite/test-suite-data/h-org/hyperlink/input.html deleted file mode 100644 index d51ceda..0000000 --- a/tests/test-suite/test-suite-data/h-org/hyperlink/input.html +++ /dev/null @@ -1 +0,0 @@ -Mozilla Foundation \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-org/hyperlink/output.json b/tests/test-suite/test-suite-data/h-org/hyperlink/output.json deleted file mode 100644 index 9acc8fe..0000000 --- a/tests/test-suite/test-suite-data/h-org/hyperlink/output.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "items": [{ - "type": ["h-org"], - "properties": { - "name": ["Mozilla Foundation"], - "url": ["http://mozilla.org/"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-org/hyperlink/test.json b/tests/test-suite/test-suite-data/h-org/hyperlink/test.json deleted file mode 100644 index 01ba3eb..0000000 --- a/tests/test-suite/test-suite-data/h-org/hyperlink/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a hyperlink", - "description": "h-org", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-org/simple/input.html b/tests/test-suite/test-suite-data/h-org/simple/input.html deleted file mode 100644 index 822668d..0000000 --- a/tests/test-suite/test-suite-data/h-org/simple/input.html +++ /dev/null @@ -1 +0,0 @@ -Mozilla Foundation \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-org/simple/output.json b/tests/test-suite/test-suite-data/h-org/simple/output.json deleted file mode 100644 index e7406a9..0000000 --- a/tests/test-suite/test-suite-data/h-org/simple/output.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "items": [{ - "type": ["h-org"], - "properties": { - "name": ["Mozilla Foundation"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-org/simple/test.json b/tests/test-suite/test-suite-data/h-org/simple/test.json deleted file mode 100644 index 63b8dfd..0000000 --- a/tests/test-suite/test-suite-data/h-org/simple/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Simple org", - "description": "h-org", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-org/simpleproperties/input.html b/tests/test-suite/test-suite-data/h-org/simpleproperties/input.html deleted file mode 100644 index e9480e0..0000000 --- a/tests/test-suite/test-suite-data/h-org/simpleproperties/input.html +++ /dev/null @@ -1,4 +0,0 @@ -

- W3C - - CSS Working Group -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-org/simpleproperties/output.json b/tests/test-suite/test-suite-data/h-org/simpleproperties/output.json deleted file mode 100644 index e094560..0000000 --- a/tests/test-suite/test-suite-data/h-org/simpleproperties/output.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "items": [{ - "type": ["h-org"], - "properties": { - "organization-name": ["W3C"], - "organization-unit": ["CSS Working Group"], - "name": ["W3C - CSS Working Group"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-org/simpleproperties/test.json b/tests/test-suite/test-suite-data/h-org/simpleproperties/test.json deleted file mode 100644 index 2f1b936..0000000 --- a/tests/test-suite/test-suite-data/h-org/simpleproperties/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Simple properties", - "description": "h-org", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-org/suite.json b/tests/test-suite/test-suite-data/h-org/suite.json deleted file mode 100644 index db03f0e..0000000 --- a/tests/test-suite/test-suite-data/h-org/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "h-org parsing tests", - "description": "This page was design to test the parsing of h-org. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-product/aggregate/input.html b/tests/test-suite/test-suite-data/h-product/aggregate/input.html deleted file mode 100644 index 60dfa04..0000000 --- a/tests/test-suite/test-suite-data/h-product/aggregate/input.html +++ /dev/null @@ -1,20 +0,0 @@ -
-

Raspberry Pi

- -

The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.

- More info about the Raspberry Pi -

£29.95

-

- - 9.2 out of - 10 - based on 178 reviews - -

-

Categories: Computer, Education

-

From: - The Raspberry Pi Foundation - - Cambridge - UK -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-product/aggregate/output.json b/tests/test-suite/test-suite-data/h-product/aggregate/output.json deleted file mode 100644 index a4e56dc..0000000 --- a/tests/test-suite/test-suite-data/h-product/aggregate/output.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "items": [{ - "type": ["h-product"], - "properties": { - "name": ["Raspberry Pi"], - "photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"], - "description": [{ - "value": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.", - "html": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming." - }], - "url": ["http://www.raspberrypi.org/"], - "price": ["£29.95"], - "review": [{ - "value": "9.2 out of 10 based on 178 reviews", - "type": ["h-review-aggregate"], - "properties": { - "rating": [{ - "value": "9.2 out of 10 based on 178 reviews", - "type": ["h-rating"], - "properties": { - "average": ["9.2"], - "best": ["10"], - "count": ["178"], - "name": ["9.2 out of 10 based on 178 reviews"] - } - }], - "name": ["9.2 out of 10 based on 178 reviews"] - } - }], - "category": ["Computer","Education"], - "brand": [{ - "value": "From: The Raspberry Pi Foundation - Cambridge UK", - "type": ["h-card"], - "properties": { - "name": ["The Raspberry Pi Foundation"], - "org": ["The Raspberry Pi Foundation"], - "locality": ["Cambridge"], - "country-name": ["UK"] - } - }] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-product/aggregate/test.json b/tests/test-suite/test-suite-data/h-product/aggregate/test.json deleted file mode 100644 index 0b56103..0000000 --- a/tests/test-suite/test-suite-data/h-product/aggregate/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "With h-review-aggregate", - "description": "h-product", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-product/justahyperlink/input.html b/tests/test-suite/test-suite-data/h-product/justahyperlink/input.html deleted file mode 100644 index 868d980..0000000 --- a/tests/test-suite/test-suite-data/h-product/justahyperlink/input.html +++ /dev/null @@ -1 +0,0 @@ -Raspberry Pi \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-product/justahyperlink/output.json b/tests/test-suite/test-suite-data/h-product/justahyperlink/output.json deleted file mode 100644 index b073a3b..0000000 --- a/tests/test-suite/test-suite-data/h-product/justahyperlink/output.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "items": [{ - "type": ["h-product"], - "properties": { - "name": ["Raspberry Pi"], - "url": ["http://www.raspberrypi.org/"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-product/justahyperlink/test.json b/tests/test-suite/test-suite-data/h-product/justahyperlink/test.json deleted file mode 100644 index bc40277..0000000 --- a/tests/test-suite/test-suite-data/h-product/justahyperlink/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a hyperlink", - "description": "h-product", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-product/justaname/input.html b/tests/test-suite/test-suite-data/h-product/justaname/input.html deleted file mode 100644 index 5fcf87b..0000000 --- a/tests/test-suite/test-suite-data/h-product/justaname/input.html +++ /dev/null @@ -1 +0,0 @@ -

Raspberry Pi

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-product/justaname/output.json b/tests/test-suite/test-suite-data/h-product/justaname/output.json deleted file mode 100644 index 61831b3..0000000 --- a/tests/test-suite/test-suite-data/h-product/justaname/output.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "items": [{ - "type": ["h-product"], - "properties": { - "name": ["Raspberry Pi"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-product/justaname/test.json b/tests/test-suite/test-suite-data/h-product/justaname/test.json deleted file mode 100644 index 51a3d3e..0000000 --- a/tests/test-suite/test-suite-data/h-product/justaname/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a name", - "description": "h-product", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-product/simpleproperties/input.html b/tests/test-suite/test-suite-data/h-product/simpleproperties/input.html deleted file mode 100644 index 5015c2a..0000000 --- a/tests/test-suite/test-suite-data/h-product/simpleproperties/input.html +++ /dev/null @@ -1,9 +0,0 @@ -
-

Raspberry Pi

- -

The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.

- More info about the Raspberry Pi -

£29.95

-

4.5 out of 5

-

Categories: Computer, Education

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-product/simpleproperties/output.json b/tests/test-suite/test-suite-data/h-product/simpleproperties/output.json deleted file mode 100644 index a5b92c5..0000000 --- a/tests/test-suite/test-suite-data/h-product/simpleproperties/output.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "items": [{ - "type": ["h-product"], - "properties": { - "name": ["Raspberry Pi"], - "photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"], - "description": [{ - "value": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.", - "html": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming." - }], - "url": ["http://www.raspberrypi.org/"], - "price": ["£29.95"], - "category": ["Computer","Education"], - "review": [{ - "value": "4.5 out of 5", - "type": ["h-review"], - "properties": { - "rating": ["4.5"], - "name": ["4.5 out of 5"] - } - }] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-product/simpleproperties/test.json b/tests/test-suite/test-suite-data/h-product/simpleproperties/test.json deleted file mode 100644 index ac3016f..0000000 --- a/tests/test-suite/test-suite-data/h-product/simpleproperties/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "With h-review", - "description": "h-product", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-product/suite.json b/tests/test-suite/test-suite-data/h-product/suite.json deleted file mode 100644 index e5336e6..0000000 --- a/tests/test-suite/test-suite-data/h-product/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "h-product parsing tests", - "description": "This page was design to test the parsing of h-product. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-recipe/all/input.html b/tests/test-suite/test-suite-data/h-recipe/all/input.html deleted file mode 100644 index 886b827..0000000 --- a/tests/test-suite/test-suite-data/h-recipe/all/input.html +++ /dev/null @@ -1,63 +0,0 @@ -
-

Yorkshire Puddings

-

Makes 6 good sized Yorkshire puddings, the way my mum taught me

- - -

- - - - 4.5 stars out 5 based on - 35 reviews - - - -
-

Ingredients

-
    -
  • 1 egg
  • -
  • 75g plain flour
  • -
  • 70ml milk
  • -
  • 60ml water
  • -
  • Pinch of salt
  • -
-
- -

Time

-
    -
  • Preparation 10 mins
  • -
  • Cook 25 mins
  • -
- - -

Instructions

-
-
    -
  1. Pre-heat oven to 230C or gas mark 8. Pour the vegetable oil evenly into 2 x 4-hole - Yorkshire pudding tins and place in the oven to heat through.
  2. - -
  3. To make the batter, add all the flour into a bowl and beat in the eggs until smooth. - Gradually add the milk and water while beating the mixture. It should be smooth and - without lumps. Finally add a pinch of salt.
  4. - -
  5. Make sure the oil is piping hot before pouring the batter evenly into the tins. - Place in the oven for 20-25 minutes until pudding have risen and look golden brown
  6. -
-
- -

Nutrition

-
    -
  • Calories: 125
  • -
  • Fat: 3.2g
  • -
  • Cholesterol: 77mg
  • -
-

(Amount per pudding)

- -

- Published on by - - Glenn Jones - -

- Photo by dithie -
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-recipe/all/output.json b/tests/test-suite/test-suite-data/h-recipe/all/output.json deleted file mode 100644 index 2bd8227..0000000 --- a/tests/test-suite/test-suite-data/h-recipe/all/output.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "items": [ { - "type": ["h-recipe"], - "properties": { - "name": ["Yorkshire Puddings"], - "summary": ["Makes 6 good sized Yorkshire puddings, the way my mum taught me"], - "yield": ["6 good sized Yorkshire puddings"], - "photo": ["http://codebits.glennjones.net/semantic/yorkshire-puddings.jpg"], - "review": [ - { - "value": "4.5 stars out 5 based on 35 reviews", - "type": ["h-review-aggregate"], - "properties": { - "rating": ["4.5 stars out 5 based on"], - "average": ["4.5"], - "count": ["35"], - "name": ["4.5 stars out 5 based on 35 reviews"] - } - } - ], - "ingredient": [{ - "value": "1 egg", - "html": "1 egg" - },{ - "value": "75g plain flour", - "html": "75g plain flour" - },{ - "value": "70ml milk", - "html": "70ml milk" - },{ - "value": "60ml water", - "html": "60ml water" - },{ - "value": "Pinch of salt", - "html": "Pinch of salt" - }], - "instructions": [{ - "value": "Pre-heat oven to 230C or gas mark 8. Pour the vegetable oil evenly into 2 x 4-hole Yorkshire pudding tins and place in the oven to heat through. To make the batter, add all the flour into a bowl and beat in the eggs until smooth. Gradually add the milk and water while beating the mixture. It should be smooth and without lumps. Finally add a pinch of salt. Make sure the oil is piping hot before pouring the batter evenly into the tins. Place in the oven for 20-25 minutes until pudding have risen and look golden brown", - "html": "\n
    \n
  1. Pre-heat oven to 230C or gas mark 8. Pour the vegetable oil evenly into 2 x 4-hole \n Yorkshire pudding tins and place in the oven to heat through.
  2. \n \n
  3. To make the batter, add all the flour into a bowl and beat in the eggs until smooth. \n Gradually add the milk and water while beating the mixture. It should be smooth and \n without lumps. Finally add a pinch of salt.
  4. \n \n
  5. Make sure the oil is piping hot before pouring the batter evenly into the tins. \n Place in the oven for 20-25 minutes until pudding have risen and look golden brown
  6. \n
\n " - }], - "nutrition": [ - "Calories: 125", - "Fat: 3.2g", - "Cholesterol: 77mg" - ], - "published": ["2011-10-27"], - "author": [ - { - "value": "Glenn Jones", - "type": ["h-card"], - "properties": { - "name": ["Glenn Jones"], - "url": ["http://glennjones.net"] - } - } - ] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-recipe/all/test.json b/tests/test-suite/test-suite-data/h-recipe/all/test.json deleted file mode 100644 index d7ba2f7..0000000 --- a/tests/test-suite/test-suite-data/h-recipe/all/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Broken into properties", - "description": "h-recipe", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-recipe/minimum/input.html b/tests/test-suite/test-suite-data/h-recipe/minimum/input.html deleted file mode 100644 index 0b207b8..0000000 --- a/tests/test-suite/test-suite-data/h-recipe/minimum/input.html +++ /dev/null @@ -1,7 +0,0 @@ -
-

Toast

-
    -
  • Slice of bread
  • -
  • Butter
  • -
-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-recipe/minimum/output.json b/tests/test-suite/test-suite-data/h-recipe/minimum/output.json deleted file mode 100644 index 77b6f09..0000000 --- a/tests/test-suite/test-suite-data/h-recipe/minimum/output.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "items": [{ - "type": ["h-recipe"], - "properties": { - "name": ["Toast"], - "ingredient": [{ - "value": "Slice of bread", - "html": "Slice of bread" - },{ - "value": "Butter", - "html": "Butter" - }] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-recipe/minimum/test.json b/tests/test-suite/test-suite-data/h-recipe/minimum/test.json deleted file mode 100644 index aa0bdb5..0000000 --- a/tests/test-suite/test-suite-data/h-recipe/minimum/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Minimum properties", - "description": "h-recipe", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-recipe/suite.json b/tests/test-suite/test-suite-data/h-recipe/suite.json deleted file mode 100644 index 6c37f97..0000000 --- a/tests/test-suite/test-suite-data/h-recipe/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "h-recipe parsing tests", - "description": "This page was design to test the parsing of h-recipe. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/affiliation/input.html b/tests/test-suite/test-suite-data/h-resume/affiliation/input.html deleted file mode 100644 index 87731ce..0000000 --- a/tests/test-suite/test-suite-data/h-resume/affiliation/input.html +++ /dev/null @@ -1,12 +0,0 @@ -
-

- Tim Berners-Lee, - invented the World Wide Web. -

- Belongs to following groups: -

- - W3C - -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/affiliation/output.json b/tests/test-suite/test-suite-data/h-resume/affiliation/output.json deleted file mode 100644 index 63496ad..0000000 --- a/tests/test-suite/test-suite-data/h-resume/affiliation/output.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "items": [{ - "type": ["h-resume"], - "properties": { - "name": ["Tim Berners-Lee"], - "summary": ["invented the World Wide Web"], - "affiliation": [{ - "value": "", - "type": ["h-card"], - "properties": { - "name": ["W3C"], - "photo": ["http://www.w3.org/Icons/WWW/w3c_home_nb.png"], - "url": ["http://www.w3.org/"] - } - }] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["W3C"], - "photo": ["http://www.w3.org/Icons/WWW/w3c_home_nb.png"], - "url": ["http://www.w3.org/"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/affiliation/test.json b/tests/test-suite/test-suite-data/h-resume/affiliation/test.json deleted file mode 100644 index d829aa2..0000000 --- a/tests/test-suite/test-suite-data/h-resume/affiliation/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Affiliations", - "description": "h-resume", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/contact/input.html b/tests/test-suite/test-suite-data/h-resume/contact/input.html deleted file mode 100644 index 3fdaccc..0000000 --- a/tests/test-suite/test-suite-data/h-resume/contact/input.html +++ /dev/null @@ -1,17 +0,0 @@ -
-

Tim Berners-Lee

-

Invented the World Wide Web.


-
-

MIT

-

- 32 Vassar Street, - Room 32-G524, - Cambridge, - MA - 02139, - USA. -

-

Tel:+1 (617) 253 5702

-

Email:timbl@w3.org

-
-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/contact/output.json b/tests/test-suite/test-suite-data/h-resume/contact/output.json deleted file mode 100644 index 29980f9..0000000 --- a/tests/test-suite/test-suite-data/h-resume/contact/output.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "items": [{ - "type": ["h-resume"], - "properties": { - "name": ["Tim Berners-Lee"], - "summary": ["Invented the World Wide Web."], - "contact": [{ - "value": "MIT 32 Vassar Street, Room 32-G524, Cambridge, MA 02139, USA. Tel:+1 (617) 253 5702 Email:timbl@w3.org", - "type": ["h-card"], - "properties": { - "name": ["MIT"], - "street-address": ["32 Vassar Street"], - "extended-address": ["Room 32-G524"], - "locality": ["Cambridge"], - "region": ["MA"], - "postal-code": ["02139"], - "country-name": ["USA"], - "tel": ["+1 (617) 253 5702"], - "email": ["mailto:timbl@w3.org"] - } - }] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["MIT"], - "street-address": ["32 Vassar Street"], - "extended-address": ["Room 32-G524"], - "locality": ["Cambridge"], - "region": ["MA"], - "postal-code": ["02139"], - "country-name": ["USA"], - "tel": ["+1 (617) 253 5702"], - "email": ["timbl@w3.org"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/contact/test.json b/tests/test-suite/test-suite-data/h-resume/contact/test.json deleted file mode 100644 index 17f1b96..0000000 --- a/tests/test-suite/test-suite-data/h-resume/contact/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Contact", - "description": "h-resume", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/education/input.html b/tests/test-suite/test-suite-data/h-resume/education/input.html deleted file mode 100644 index 2466140..0000000 --- a/tests/test-suite/test-suite-data/h-resume/education/input.html +++ /dev/null @@ -1,13 +0,0 @@ -
-

Tim Berners-Lee

-
-

Director of the World Wide Web Foundation

-
-

Invented the World Wide Web.


-

- The Queen's College, Oxford University, - BA Hons (I) Physics - – - -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/education/output.json b/tests/test-suite/test-suite-data/h-resume/education/output.json deleted file mode 100644 index 21072c6..0000000 --- a/tests/test-suite/test-suite-data/h-resume/education/output.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "items": [{ - "type": ["h-resume"], - "properties": { - "name": ["Tim Berners-Lee"], - "summary": ["Invented the World Wide Web."], - "contact": [{ - "value": "Director of the World Wide Web Foundation", - "type": ["h-card"], - "properties": { - "name": ["Director of the World Wide Web Foundation"], - "title": ["Director of the World Wide Web Foundation"] - } - }], - "education": [{ - "value": "The Queen's College, Oxford University, BA Hons (I) Physics 1973 - 1976", - "type": ["h-event", "h-card"], - "properties": { - "name": ["The Queen's College, Oxford University"], - "org": ["The Queen's College, Oxford University"], - "description": ["BA Hons (I) Physics"], - "start": ["1973-09"], - "end": ["1976-06"] - } - }] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Director of the World Wide Web Foundation"], - "title": ["Director of the World Wide Web Foundation"] - } - },{ - "type": ["h-event"], - "properties": { - "name": ["The Queen's College, Oxford University"], - "org": ["The Queen's College, Oxford University"], - "description": ["BA Hons (I) Physics"], - "start": ["1973-09"], - "end": ["1976-06"] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["World Wide Web Foundation"], - "org": ["World Wide Web Foundation"], - "url": ["http://www.webfoundation.org/"], - "start": ["2009-01-18"], - "duration": ["P2Y11M"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/education/test.json b/tests/test-suite/test-suite-data/h-resume/education/test.json deleted file mode 100644 index ed6b2ef..0000000 --- a/tests/test-suite/test-suite-data/h-resume/education/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Educational experience", - "description": "h-resume", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/justaname/input.html b/tests/test-suite/test-suite-data/h-resume/justaname/input.html deleted file mode 100644 index 28943c5..0000000 --- a/tests/test-suite/test-suite-data/h-resume/justaname/input.html +++ /dev/null @@ -1 +0,0 @@ -

Tim Berners-Lee, invented the World Wide Web.

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/justaname/output.json b/tests/test-suite/test-suite-data/h-resume/justaname/output.json deleted file mode 100644 index d5dd9a4..0000000 --- a/tests/test-suite/test-suite-data/h-resume/justaname/output.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "items": [{ - "type": ["h-resume"], - "properties": { - "name": ["Tim Berners-Lee, invented the World Wide Web."] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/justaname/test.json b/tests/test-suite/test-suite-data/h-resume/justaname/test.json deleted file mode 100644 index 60a8b40..0000000 --- a/tests/test-suite/test-suite-data/h-resume/justaname/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a name", - "description": "h-resume", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/skill/input.html b/tests/test-suite/test-suite-data/h-resume/skill/input.html deleted file mode 100644 index d5b1424..0000000 --- a/tests/test-suite/test-suite-data/h-resume/skill/input.html +++ /dev/null @@ -1,12 +0,0 @@ -
-

- Tim Berners-Lee, - invented the World Wide Web. -

- Skills: -
    -
  • information systems
  • -
  • advocacy
  • -
  • leadership
  • -
      -
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/skill/output.json b/tests/test-suite/test-suite-data/h-resume/skill/output.json deleted file mode 100644 index 9624e09..0000000 --- a/tests/test-suite/test-suite-data/h-resume/skill/output.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "items": [{ - "type": ["h-resume"], - "properties": { - "name": ["Tim Berners-Lee"], - "summary": ["invented the World Wide Web"], - "skill": ["information systems", "advocacy", "leadership"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/skill/test.json b/tests/test-suite/test-suite-data/h-resume/skill/test.json deleted file mode 100644 index 66d35d3..0000000 --- a/tests/test-suite/test-suite-data/h-resume/skill/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Skills", - "description": "h-resume", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/suite.json b/tests/test-suite/test-suite-data/h-resume/suite.json deleted file mode 100644 index 170ea00..0000000 --- a/tests/test-suite/test-suite-data/h-resume/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "h-resume parsing tests", - "description": "This page was design to test the parsing of h-resume. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/work/input.html b/tests/test-suite/test-suite-data/h-resume/work/input.html deleted file mode 100644 index e1d3a11..0000000 --- a/tests/test-suite/test-suite-data/h-resume/work/input.html +++ /dev/null @@ -1,15 +0,0 @@ -
-

Tim Berners-Lee

-
-

Director of the World Wide Web Foundation

-
-

Invented the World Wide Web.


-
-

Director

-

World Wide Web Foundation

-

- – Present - -

-
-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/work/output.json b/tests/test-suite/test-suite-data/h-resume/work/output.json deleted file mode 100644 index dc4ce52..0000000 --- a/tests/test-suite/test-suite-data/h-resume/work/output.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "items": [{ - "type": ["h-resume"], - "properties": { - "name": ["Tim Berners-Lee"], - "summary": ["Invented the World Wide Web."], - "contact": [{ - "value": "Director of the World Wide Web Foundation", - "type": ["h-card"], - "properties": { - "name": ["Director of the World Wide Web Foundation"], - "title": ["Director of the World Wide Web Foundation"] - } - }], - "experience": [{ - "value": "Director World Wide Web Foundation Jan 2009 - Present (2 years 11 month)", - "type": ["h-event", "h-card"], - "properties": { - "name": ["World Wide Web Foundation"], - "org": ["World Wide Web Foundation"], - "url": ["http://www.webfoundation.org/"], - "start": ["2009-01-18"], - "duration": ["P2Y11M"] - } - }] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Director of the World Wide Web Foundation"], - "title": ["Director of the World Wide Web Foundation"] - } - },{ - "type": ["h-event"], - "properties": { - "name": ["World Wide Web Foundation"], - "org": ["World Wide Web Foundation"], - "url": ["http://www.webfoundation.org/"], - "start": ["2009-01-18"], - "duration": ["P2Y11M"] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["World Wide Web Foundation"], - "org": ["World Wide Web Foundation"], - "url": ["http://www.webfoundation.org/"], - "start": ["2009-01-18"], - "duration": ["P2Y11M"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-resume/work/test.json b/tests/test-suite/test-suite-data/h-resume/work/test.json deleted file mode 100644 index 828c387..0000000 --- a/tests/test-suite/test-suite-data/h-resume/work/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Work experience", - "description": "h-resume", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review-aggregate/hevent/input.html b/tests/test-suite/test-suite-data/h-review-aggregate/hevent/input.html deleted file mode 100644 index 713d7d6..0000000 --- a/tests/test-suite/test-suite-data/h-review-aggregate/hevent/input.html +++ /dev/null @@ -1,13 +0,0 @@ -
-
-

Fullfrontal

-

A one day JavaScript Conference held in Brighton

-

-
- -

- 9.9 out of - 10 - based on 62 reviews -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review-aggregate/hevent/output.json b/tests/test-suite/test-suite-data/h-review-aggregate/hevent/output.json deleted file mode 100644 index 3b072d8..0000000 --- a/tests/test-suite/test-suite-data/h-review-aggregate/hevent/output.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "items": [{ - "type": ["h-review-aggregate"], - "properties": { - "item": [{ - "value": "Fullfrontal A one day JavaScript Conference held in Brighton 9th November 2012", - "type": ["h-event"], - "properties": { - "name": ["Fullfrontal"], - "description": ["A one day JavaScript Conference held in Brighton"], - "start": ["2012-11-09"] - } - }], - "rating": ["9.9"], - "average": ["9.9"], - "best": ["10"], - "count": ["62"], - "name": ["Fullfrontal A one day JavaScript Conference held in Brighton 9th November 2012 9.9 out of 10 based on 62 reviews"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review-aggregate/hevent/test.json b/tests/test-suite/test-suite-data/h-review-aggregate/hevent/test.json deleted file mode 100644 index 52727d9..0000000 --- a/tests/test-suite/test-suite-data/h-review-aggregate/hevent/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "With p-item as a h-event", - "description": "hreview-aggregate", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review-aggregate/justahyperlink/input.html b/tests/test-suite/test-suite-data/h-review-aggregate/justahyperlink/input.html deleted file mode 100644 index 233a1d5..0000000 --- a/tests/test-suite/test-suite-data/h-review-aggregate/justahyperlink/input.html +++ /dev/null @@ -1,8 +0,0 @@ -
-

Mediterranean Wraps

- - Customers flock to this small restaurant for their - tasty falafel and shawerma wraps and welcoming staff. - - 4.5 out of 5 -
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review-aggregate/justahyperlink/output.json b/tests/test-suite/test-suite-data/h-review-aggregate/justahyperlink/output.json deleted file mode 100644 index c4f7da0..0000000 --- a/tests/test-suite/test-suite-data/h-review-aggregate/justahyperlink/output.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "items": [{ - "type": ["h-review-aggregate"], - "properties": { - "item": [{ - "value": "Mediterranean Wraps", - "type": ["h-item"], - "properties": { - "name": ["Mediterranean Wraps"] - } - }], - "summary": ["Customers flock to this small restaurant for their tasty falafel and shawerma wraps and welcoming staff."], - "rating": ["4.5"], - "name": ["Mediterranean Wraps Customers flock to this small restaurant for their tasty falafel and shawerma wraps and welcoming staff. 4.5 out of 5"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review-aggregate/justahyperlink/test.json b/tests/test-suite/test-suite-data/h-review-aggregate/justahyperlink/test.json deleted file mode 100644 index 274d9c9..0000000 --- a/tests/test-suite/test-suite-data/h-review-aggregate/justahyperlink/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Minimum properties", - "description": "h-review-aggregate", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review-aggregate/simpleproperties/input.html b/tests/test-suite/test-suite-data/h-review-aggregate/simpleproperties/input.html deleted file mode 100644 index 12b3a31..0000000 --- a/tests/test-suite/test-suite-data/h-review-aggregate/simpleproperties/input.html +++ /dev/null @@ -1,18 +0,0 @@ -
-
-

Mediterranean Wraps

-

- 433 S California Ave, - Palo Alto, - CA - - (650) 321-8189 -

-
- Customers flock to this small restaurant for their - tasty falafel and shawerma wraps and welcoming staff. - - 9.2 out of - 10 - based on 17 reviews - -
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review-aggregate/simpleproperties/output.json b/tests/test-suite/test-suite-data/h-review-aggregate/simpleproperties/output.json deleted file mode 100644 index fbe8cd6..0000000 --- a/tests/test-suite/test-suite-data/h-review-aggregate/simpleproperties/output.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "items": [{ - "type": ["h-review-aggregate"], - "properties": { - "item": [{ - "value": "Mediterranean Wraps 433 S California Ave, Palo Alto, CA - (650) 321-8189", - "type": ["h-card"], - "properties": { - "name": ["Mediterranean Wraps"], - "street-address": ["433 S California Ave"], - "locality": ["Palo Alto"], - "region": ["CA"], - "tel": ["(650) 321-8189"] - } - }], - "summary": ["Customers flock to this small restaurant for their tasty falafel and shawerma wraps and welcoming staff."], - "rating": ["9.2"], - "average": ["9.2"], - "best": ["10"], - "count": ["17"], - "name": ["Mediterranean Wraps 433 S California Ave, Palo Alto, CA - (650) 321-8189 Customers flock to this small restaurant for their tasty falafel and shawerma wraps and welcoming staff. 9.2 out of 10 based on 17 reviews"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review-aggregate/simpleproperties/test.json b/tests/test-suite/test-suite-data/h-review-aggregate/simpleproperties/test.json deleted file mode 100644 index 210c962..0000000 --- a/tests/test-suite/test-suite-data/h-review-aggregate/simpleproperties/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Broken into properties", - "description": "h-review-aggregate", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review-aggregate/suite.json b/tests/test-suite/test-suite-data/h-review-aggregate/suite.json deleted file mode 100644 index 364b3b0..0000000 --- a/tests/test-suite/test-suite-data/h-review-aggregate/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "h-review-aggregate parsing tests", - "description": "This page was design to test the parsing of h-review-aggregate. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/hyperlink/input.html b/tests/test-suite/test-suite-data/h-review/hyperlink/input.html deleted file mode 100644 index 3c1d515..0000000 --- a/tests/test-suite/test-suite-data/h-review/hyperlink/input.html +++ /dev/null @@ -1 +0,0 @@ -Crepes on Cole \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/hyperlink/output.json b/tests/test-suite/test-suite-data/h-review/hyperlink/output.json deleted file mode 100644 index 4e46571..0000000 --- a/tests/test-suite/test-suite-data/h-review/hyperlink/output.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "items": [{ - "type": ["h-review"], - "properties": { - "name": ["Crepes on Cole"], - "url": ["https://plus.google.com/116941523817079328322/about"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/hyperlink/test.json b/tests/test-suite/test-suite-data/h-review/hyperlink/test.json deleted file mode 100644 index 0f2c720..0000000 --- a/tests/test-suite/test-suite-data/h-review/hyperlink/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a hyperlink", - "description": "h-review", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/implieditem/input.html b/tests/test-suite/test-suite-data/h-review/implieditem/input.html deleted file mode 100644 index 63c0b50..0000000 --- a/tests/test-suite/test-suite-data/h-review/implieditem/input.html +++ /dev/null @@ -1,4 +0,0 @@ -
- Crepes on Cole -

4.7 out of 5 stars

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/implieditem/output.json b/tests/test-suite/test-suite-data/h-review/implieditem/output.json deleted file mode 100644 index 48e4661..0000000 --- a/tests/test-suite/test-suite-data/h-review/implieditem/output.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "items": [{ - "type": ["h-review"], - "properties": { - "item": [{ - "value": "Crepes on Cole", - "type": ["h-item"], - "properties": { - "name": ["Crepes on Cole"], - "url": ["http://example.com/crepeoncole"] - } - }], - "rating": ["4.7"], - "name": ["Crepes on Cole 4.7 out of 5 stars"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/implieditem/test.json b/tests/test-suite/test-suite-data/h-review/implieditem/test.json deleted file mode 100644 index 6502a5a..0000000 --- a/tests/test-suite/test-suite-data/h-review/implieditem/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "With implied item name and url", - "description": "h-review", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/item/input.html b/tests/test-suite/test-suite-data/h-review/item/input.html deleted file mode 100644 index 6e39df6..0000000 --- a/tests/test-suite/test-suite-data/h-review/item/input.html +++ /dev/null @@ -1,7 +0,0 @@ -
-

- - Crepes on Cole -

-

5 out of 5 stars

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/item/output.json b/tests/test-suite/test-suite-data/h-review/item/output.json deleted file mode 100644 index 5d0658e..0000000 --- a/tests/test-suite/test-suite-data/h-review/item/output.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "items": [{ - "type": ["h-review"], - "properties": { - - "item": [{ - "value": "Crepes on Cole", - "type": ["h-item"], - "properties": { - "photo": ["http://example.com/images/photo.gif"], - "name": ["Crepes on Cole"], - "url": ["http://example.com/crepeoncole"] - } - }], - "rating": ["5"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/item/test.json b/tests/test-suite/test-suite-data/h-review/item/test.json deleted file mode 100644 index 70f215e..0000000 --- a/tests/test-suite/test-suite-data/h-review/item/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "With item", - "description": "h-review", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/justaname/input.html b/tests/test-suite/test-suite-data/h-review/justaname/input.html deleted file mode 100644 index c85e031..0000000 --- a/tests/test-suite/test-suite-data/h-review/justaname/input.html +++ /dev/null @@ -1 +0,0 @@ -

Crepes on Cole

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/justaname/output.json b/tests/test-suite/test-suite-data/h-review/justaname/output.json deleted file mode 100644 index 12e27cf..0000000 --- a/tests/test-suite/test-suite-data/h-review/justaname/output.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "items": [{ - "type": ["h-review"], - "properties": { - "name": ["Crepes on Cole"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/justaname/test.json b/tests/test-suite/test-suite-data/h-review/justaname/test.json deleted file mode 100644 index 5517189..0000000 --- a/tests/test-suite/test-suite-data/h-review/justaname/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a name", - "description": "h-review", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/photo/input.html b/tests/test-suite/test-suite-data/h-review/photo/input.html deleted file mode 100644 index 1d8de16..0000000 --- a/tests/test-suite/test-suite-data/h-review/photo/input.html +++ /dev/null @@ -1 +0,0 @@ -Crepes on Cole \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/photo/output.json b/tests/test-suite/test-suite-data/h-review/photo/output.json deleted file mode 100644 index a104efa..0000000 --- a/tests/test-suite/test-suite-data/h-review/photo/output.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "items": [{ - "type": ["h-review"], - "properties": { - "name": ["Crepes on Cole"], - "photo": ["http://example.com/images/photo.gif"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/photo/test.json b/tests/test-suite/test-suite-data/h-review/photo/test.json deleted file mode 100644 index 0771b6a..0000000 --- a/tests/test-suite/test-suite-data/h-review/photo/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a photo", - "description": "h-review", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/suite.json b/tests/test-suite/test-suite-data/h-review/suite.json deleted file mode 100644 index a8e76d2..0000000 --- a/tests/test-suite/test-suite-data/h-review/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "h-review parsing tests", - "description": "This page was design to test the parsing of h-review. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/vcard/input.html b/tests/test-suite/test-suite-data/h-review/vcard/input.html deleted file mode 100644 index d96e965..0000000 --- a/tests/test-suite/test-suite-data/h-review/vcard/input.html +++ /dev/null @@ -1,23 +0,0 @@ -
- 5 out of 5 stars -

Crepes on Cole is awesome

- - Reviewer: Tantek - - - -
-

- Crepes on Cole is one of the best little - creperies in San Francisco. - Excellent food and service. Plenty of tables in a variety of sizes - for parties large and small. Window seating makes for excellent - people watching to/from the N-Judah which stops right outside. - I've had many fun social gatherings here, as well as gotten - plenty of work done thanks to neighborhood WiFi. -

-
-

Visit date: April 2005

-

Food eaten: crepe

-

Permanent link for review: http://example.com/crepe

-

Creative Commons Attribution-ShareAlike License

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/vcard/output.json b/tests/test-suite/test-suite-data/h-review/vcard/output.json deleted file mode 100644 index 88d2edb..0000000 --- a/tests/test-suite/test-suite-data/h-review/vcard/output.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "items": [{ - "type": ["h-review"], - "properties": { - "rating": ["5"], - "name": ["Crepes on Cole is awesome"], - "reviewer": [{ - "value": "Reviewer: Tantek -", - "type": ["h-card"], - "properties": { - "name": ["Tantek"] - } - }], - "description": [{ - "value": "Crepes on Cole is one of the best little creperies in San Francisco. Excellent food and service. Plenty of tables in a variety of sizes for parties large and small. Window seating makes for excellent people watching to/from the N-Judah which stops right outside. I've had many fun social gatherings here, as well as gotten plenty of work done thanks to neighborhood WiFi.", - "html": "\n

\n Crepes on Cole is one of the best little \n creperies in San Francisco.\n Excellent food and service. Plenty of tables in a variety of sizes \n for parties large and small. Window seating makes for excellent \n people watching to/from the N-Judah which stops right outside. \n I've had many fun social gatherings here, as well as gotten \n plenty of work done thanks to neighborhood WiFi.\n

\n " - }], - "item": [{ - "value": "Crepes on Cole is one of the best little creperies in San Francisco. Excellent food and service. Plenty of tables in a variety of sizes for parties large and small. Window seating makes for excellent people watching to/from the N-Judah which stops right outside. I've had many fun social gatherings here, as well as gotten plenty of work done thanks to neighborhood WiFi.", - "type": ["h-card"], - "properties": { - "name": ["Crepes on Cole"], - "org": ["Crepes on Cole"], - "adr": [{ - "value": "San Francisco", - "type": ["h-adr"], - "properties": { - "locality": ["San Francisco"], - "name": ["San Francisco"] - } - }] - } - }], - "category": ["crepe"], - "url": ["http://example.com/crepe"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/h-review/vcard/test.json b/tests/test-suite/test-suite-data/h-review/vcard/test.json deleted file mode 100644 index 824d1db..0000000 --- a/tests/test-suite/test-suite-data/h-review/vcard/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "With vcard item", - "description": "h-review", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/ampm/input.html b/tests/test-suite/test-suite-data/hcalendar/ampm/input.html deleted file mode 100644 index 087b54d..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/ampm/input.html +++ /dev/null @@ -1,41 +0,0 @@ -
- The 4th Microformat party will be on -
    -
  • - , from - 07:00:00pm -
  • -
  • - , from - 07:00:00am -
  • -
  • - , from - 07:00pm -
  • -
  • - , from - 07pm -
  • -
  • - , from - 7pm -
  • -
  • - , from - 7:00pm -
  • -
  • - , from - 07:00p.m. -
  • -
  • - , from - 07:00PM -
  • -
  • - , from - 7:00am -
  • -
-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/ampm/output.json b/tests/test-suite/test-suite-data/hcalendar/ampm/output.json deleted file mode 100644 index 812afaa..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/ampm/output.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "items": [{ - "type": ["h-event"], - "properties": { - "name": ["The 4th Microformat party"], - "start": [ - "2009-06-26T19:00:00", - "2009-06-26T07:00:00", - "2009-06-26T19:00:00", - "2009-06-26T19:00:00", - "2009-06-26T19:00:00", - "2009-06-26T19:00:00", - "2009-06-26T19:00:00", - "2009-06-26T19:00:00", - "2009-06-26T07:00:00" - ] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/ampm/test.json b/tests/test-suite/test-suite-data/hcalendar/ampm/test.json deleted file mode 100644 index 49104ff..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/ampm/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Meridiem time formats (am pm)", - "description": "hcalendar", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/attendees/input.html b/tests/test-suite/test-suite-data/hcalendar/attendees/input.html deleted file mode 100644 index 2379295..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/attendees/input.html +++ /dev/null @@ -1,12 +0,0 @@ -
- CPJ Online Press Freedom Summit - () in - San Francisco. - Attendees: -
    -
  • Brian Warner
  • -
  • Kyle Machulis
  • -
  • Tantek Çelik
  • -
  • Sid Sutter
  • -
-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/attendees/output.json b/tests/test-suite/test-suite-data/hcalendar/attendees/output.json deleted file mode 100644 index f85fa22..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/attendees/output.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "items": [{ - "type": ["h-event"], - "properties": { - "name": ["CPJ Online Press Freedom Summit"], - "start": ["2012-10-10"], - "location": ["San Francisco"], - "attendee": [{ - "value": "Brian Warner", - "type": ["h-card"], - "properties": { - "name": ["Brian Warner"] - } - },{ - "value": "Kyle Machulis", - "type": ["h-card"], - "properties": { - "name": ["Kyle Machulis"] - } - },{ - "value": "Tantek Çelik", - "type": ["h-card"], - "properties": { - "name": ["Tantek Çelik"] - } - },{ - "value": "Sid Sutter", - "type": ["h-card"], - "properties": { - "name": ["Sid Sutter"] - } - }] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Brian Warner"] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Kyle Machulis"] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Tantek Çelik"] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Sid Sutter"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/attendees/test.json b/tests/test-suite/test-suite-data/hcalendar/attendees/test.json deleted file mode 100644 index 882e07e..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/attendees/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "hcalendar with attendees", - "description": "hcalendar", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/combining/input.html b/tests/test-suite/test-suite-data/hcalendar/combining/input.html deleted file mode 100644 index a410c05..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/combining/input.html +++ /dev/null @@ -1,15 +0,0 @@ -
- - IndieWebCamp 2012 - - from - to at - - Geoloqi, - - 920 SW 3rd Ave. Suite 400, - Portland, - OR - - -
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/combining/output.json b/tests/test-suite/test-suite-data/hcalendar/combining/output.json deleted file mode 100644 index ef277c3..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/combining/output.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "items": [{ - "type": ["h-event"], - "properties": { - "name": ["IndieWebCamp 2012"], - "url": ["http://indiewebcamp.com/2012"], - "start": ["2012-06-30"], - "end": ["2012-07-01"], - "location": [{ - "value": "Geoloqi, 920 SW 3rd Ave. Suite 400, Portland, OR", - "type": ["h-card"], - "properties": { - "name": ["Geoloqi"], - "org": ["Geoloqi"], - "url": ["http://geoloqi.com/"], - "adr": [{ - "value": "920 SW 3rd Ave. Suite 400, Portland, OR", - "type": ["h-adr"], - "properties": { - "street-address": ["920 SW 3rd Ave. Suite 400"], - "locality": ["Portland"], - "region": ["Oregon"], - "name": ["920 SW 3rd Ave. Suite 400, Portland, OR"] - } - }] - } - }] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Geoloqi"], - "org": ["Geoloqi"], - "url": ["http://geoloqi.com/"], - "street-address": ["920 SW 3rd Ave. Suite 400"], - "locality": ["Portland"], - "region": ["Oregon"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/combining/test.json b/tests/test-suite/test-suite-data/hcalendar/combining/test.json deleted file mode 100644 index 1e27f22..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/combining/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Event with location", - "description": "hcalendar", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/concatenate/input.html b/tests/test-suite/test-suite-data/hcalendar/concatenate/input.html deleted file mode 100644 index e7aaafe..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/concatenate/input.html +++ /dev/null @@ -1,7 +0,0 @@ -
- The 4th Microformat party will be on - - , from - to - . -
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/concatenate/output.json b/tests/test-suite/test-suite-data/hcalendar/concatenate/output.json deleted file mode 100644 index ccc2df7..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/concatenate/output.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "items": [{ - "type": ["h-event"], - "properties": { - "name": ["The 4th Microformat party"], - "start": ["2009-06-26T19:00:00"], - "end": ["2009-06-26T22:00:00"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/concatenate/test.json b/tests/test-suite/test-suite-data/hcalendar/concatenate/test.json deleted file mode 100644 index db6e8c7..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/concatenate/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Concatenate multiple datetime elements", - "description": "hcalendar", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/justahyperlink/input.html b/tests/test-suite/test-suite-data/hcalendar/justahyperlink/input.html deleted file mode 100644 index 0c9a095..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/justahyperlink/input.html +++ /dev/null @@ -1 +0,0 @@ -IndieWebCamp 2012 \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/justahyperlink/output.json b/tests/test-suite/test-suite-data/hcalendar/justahyperlink/output.json deleted file mode 100644 index b858f23..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/justahyperlink/output.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "items": [{ - "type": ["h-event"], - "properties": { - "name": ["IndieWebCamp 2012"], - "url": ["http://indiewebcamp.com/2012"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/justahyperlink/test.json b/tests/test-suite/test-suite-data/hcalendar/justahyperlink/test.json deleted file mode 100644 index 85e333a..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/justahyperlink/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a hyperlink", - "description": "hcalendar", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/justaname/input.html b/tests/test-suite/test-suite-data/hcalendar/justaname/input.html deleted file mode 100644 index 0c9a095..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/justaname/input.html +++ /dev/null @@ -1 +0,0 @@ -IndieWebCamp 2012 \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/justaname/output.json b/tests/test-suite/test-suite-data/hcalendar/justaname/output.json deleted file mode 100644 index b858f23..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/justaname/output.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "items": [{ - "type": ["h-event"], - "properties": { - "name": ["IndieWebCamp 2012"], - "url": ["http://indiewebcamp.com/2012"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/justaname/test.json b/tests/test-suite/test-suite-data/hcalendar/justaname/test.json deleted file mode 100644 index 8363307..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/justaname/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a name", - "description": "hcalendar", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/suite.json b/tests/test-suite/test-suite-data/hcalendar/suite.json deleted file mode 100644 index 16b8027..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "hcalendar parsing tests", - "description": "This page was design to test the parsing of hcalendar and its output to the newer JSON structure of micorformats 2. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/time/input.html b/tests/test-suite/test-suite-data/hcalendar/time/input.html deleted file mode 100644 index d529f04..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/time/input.html +++ /dev/null @@ -1,44 +0,0 @@ -
- The 4th Microformat party will be on -
    -
  • - , from - -
  • -
  • - , from - -
  • -
  • - , from - -
  • -
  • - , from - -
  • -
  • - , from - -
  • -
  • - , from - -
  • -
  • - , from - -
  • -
  • - , from - -
  • -
  • - , from - -
  • -
  • - -
  • -
-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/time/output.json b/tests/test-suite/test-suite-data/hcalendar/time/output.json deleted file mode 100644 index 1ef00b1..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/time/output.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "items": [{ - "type": ["h-event"], - "properties": { - "name": ["The 4th Microformat party"], - "start": [ - "2009-06-26T19:00:00-0800", - "2009-06-26T19:00:00-0800", - "2009-06-26T19:00:00+0800", - "2009-06-26T19:00:00Z", - "2009-06-26T19:00:00", - "2009-06-26T19:00:00-0800", - "2009-06-26T19:00:00+0800", - "2009-06-26T19:00:00Z", - "2009-06-26T19:00:00" - ], - "end": ["2013-034"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcalendar/time/test.json b/tests/test-suite/test-suite-data/hcalendar/time/test.json deleted file mode 100644 index 7b4705c..0000000 --- a/tests/test-suite/test-suite-data/hcalendar/time/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Time formats", - "description": "hcalendar", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/email/input.html b/tests/test-suite/test-suite-data/hcard/email/input.html deleted file mode 100644 index 5084081..0000000 --- a/tests/test-suite/test-suite-data/hcard/email/input.html +++ /dev/null @@ -1,14 +0,0 @@ -
- John Doe - -
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/email/output.json b/tests/test-suite/test-suite-data/hcard/email/output.json deleted file mode 100644 index 90d29a5..0000000 --- a/tests/test-suite/test-suite-data/hcard/email/output.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["John Doe"], - "email": [ - "mailto:john@example.com", - "mailto:john@example.com", - "mailto:john@example.com?subject=parser-test", - "john@example.com" - ] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/email/test.json b/tests/test-suite/test-suite-data/hcard/email/test.json deleted file mode 100644 index 2fdfc7c..0000000 --- a/tests/test-suite/test-suite-data/hcard/email/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Emails", - "description": "hcard", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/format/input.html b/tests/test-suite/test-suite-data/hcard/format/input.html deleted file mode 100644 index 4295ea9..0000000 --- a/tests/test-suite/test-suite-data/hcard/format/input.html +++ /dev/null @@ -1,6 +0,0 @@ -

- - John - Doe - -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/format/output.json b/tests/test-suite/test-suite-data/hcard/format/output.json deleted file mode 100644 index e4f27d9..0000000 --- a/tests/test-suite/test-suite-data/hcard/format/output.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["John Doe"], - "given-name": ["John"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/format/test.json b/tests/test-suite/test-suite-data/hcard/format/test.json deleted file mode 100644 index 1799e48..0000000 --- a/tests/test-suite/test-suite-data/hcard/format/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Class attribute format", - "description": "hcard", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/hyperlinkedphoto/input.html b/tests/test-suite/test-suite-data/hcard/hyperlinkedphoto/input.html deleted file mode 100644 index bd02df9..0000000 --- a/tests/test-suite/test-suite-data/hcard/hyperlinkedphoto/input.html +++ /dev/null @@ -1,3 +0,0 @@ - - Rohit Khare - \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/hyperlinkedphoto/output.json b/tests/test-suite/test-suite-data/hcard/hyperlinkedphoto/output.json deleted file mode 100644 index 3f1339a..0000000 --- a/tests/test-suite/test-suite-data/hcard/hyperlinkedphoto/output.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["Rohit Khare"], - "photo": ["https://twimg0-a.akamaihd.net/profile_images/53307499/180px-Rohit-sq.jpg"], - "url": ["http://rohit.khare.org/"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/hyperlinkedphoto/test.json b/tests/test-suite/test-suite-data/hcard/hyperlinkedphoto/test.json deleted file mode 100644 index 5e6f1f6..0000000 --- a/tests/test-suite/test-suite-data/hcard/hyperlinkedphoto/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "A hyperlinked photo", - "description": "hcard", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/justahyperlink/input.html b/tests/test-suite/test-suite-data/hcard/justahyperlink/input.html deleted file mode 100644 index 895da10..0000000 --- a/tests/test-suite/test-suite-data/hcard/justahyperlink/input.html +++ /dev/null @@ -1 +0,0 @@ -Ben Ward \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/justahyperlink/output.json b/tests/test-suite/test-suite-data/hcard/justahyperlink/output.json deleted file mode 100644 index fa6c688..0000000 --- a/tests/test-suite/test-suite-data/hcard/justahyperlink/output.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["Ben Ward"], - "url": ["http://benward.me/"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/justahyperlink/test.json b/tests/test-suite/test-suite-data/hcard/justahyperlink/test.json deleted file mode 100644 index 60cad85..0000000 --- a/tests/test-suite/test-suite-data/hcard/justahyperlink/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a hyperlink", - "description": "hcard", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/justaname/input.html b/tests/test-suite/test-suite-data/hcard/justaname/input.html deleted file mode 100644 index 86cd1ca..0000000 --- a/tests/test-suite/test-suite-data/hcard/justaname/input.html +++ /dev/null @@ -1 +0,0 @@ -

Frances Berriman

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/justaname/output.json b/tests/test-suite/test-suite-data/hcard/justaname/output.json deleted file mode 100644 index 62f2748..0000000 --- a/tests/test-suite/test-suite-data/hcard/justaname/output.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["Frances Berriman"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/justaname/test.json b/tests/test-suite/test-suite-data/hcard/justaname/test.json deleted file mode 100644 index dde7cb0..0000000 --- a/tests/test-suite/test-suite-data/hcard/justaname/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a name", - "description": "hcard", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/multiple/input.html b/tests/test-suite/test-suite-data/hcard/multiple/input.html deleted file mode 100644 index 01b6fde..0000000 --- a/tests/test-suite/test-suite-data/hcard/multiple/input.html +++ /dev/null @@ -1,73 +0,0 @@ -
- -
John Doe
- Pronunciation of my name -
Photo of John Doe
- -

Nicknames:

-
    -
  • Man with no name
  • -
  • Lost boy
  • -
- -

About:

-

John Doe is one of those names you always have issues with.

-

It can be a real problem booking a hotel room with the name John Doe.

- -

Companies:

-
- - -
- - -

Tags: - , - and - -

- -

Phone numbers:

-
    -
  • - Work (preferred): - +1 415 555 100 -
  • -
  • Home: +1 415 555 200
  • -
  • Postal: +1 415 555 300
  • -
- -

Emails:

- -

John Doe uses PigeonMail 2.1 or Outlook 2007 for email.

- -

Addresses:

-
    -
  • - - Work: - North Street, - Brighton, - United Kingdom - - -
  • -
  • - - Home: - West Street, - Brighton, - United Kingdom - -
  • -
- -

In emergency contact: Jane Doe or Dave Doe.

-

Key: hd02$Gfu*d%dh87KTa2=23934532479

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/multiple/output.json b/tests/test-suite/test-suite-data/hcard/multiple/output.json deleted file mode 100644 index 72af9bf..0000000 --- a/tests/test-suite/test-suite-data/hcard/multiple/output.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["John Doe"], - "given-name": ["John"], - "family-name": ["Doe"], - "sound": ["http://www.madgex.com/johndoe.mpeg"], - "photo": ["http://example.com/images/photo.gif"], - "nickname": ["Man with no name","Lost boy"], - "note": [ - "John Doe is one of those names you always have issues with.", - "It can be a real problem booking a hotel room with the name John Doe." - ], - "url": ["http://www.madgex.com/", "http://www.webfeetmedia.com/"], - "org": ["Madgex","Web Feet Media Ltd"], - "title": ["Creative Director", "Owner"], - "category": ["design", "development", "web"], - "tel": ["+1 415 555 100", "+1 415 555 200", "+1 415 555 300"], - "email": ["mailto:john.doe@madgex.com", "mailto:john.doe@webfeetmedia.com"], - "mailer": ["PigeonMail 2.1","Outlook 2007"], - "adr": [{ - "value": "Work: North Street, Brighton, United Kingdom", - "type": ["h-adr"], - "properties": { - "street-address": ["North Street"], - "locality": ["Brighton"], - "country-name": ["United Kingdom"] - } - },{ - "value": "Home: West Street, Brighton, United Kingdom", - "type": ["h-adr"], - "properties": { - "street-address": ["West Street"], - "locality": ["Brighton"], - "country-name": ["United Kingdom"] - } - }], - "label": ["Work: North Street, Brighton, United Kingdom", "Home: West Street, Brighton, United Kingdom"], - "agent": ["Jane Doe", - { - "value": "Dave Doe", - "type": ["h-card"], - "properties": { - "name": ["Dave Doe"] - } - }], - "key": ["hd02$Gfu*d%dh87KTa2=23934532479"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/multiple/test.json b/tests/test-suite/test-suite-data/hcard/multiple/test.json deleted file mode 100644 index 41ad469..0000000 --- a/tests/test-suite/test-suite-data/hcard/multiple/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Multiple occurrence properties", - "description": "hcard", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/name/input.html b/tests/test-suite/test-suite-data/hcard/name/input.html deleted file mode 100644 index 295b8d6..0000000 --- a/tests/test-suite/test-suite-data/hcard/name/input.html +++ /dev/null @@ -1,10 +0,0 @@ -
-
- Dr - John - P - Doe - - PHD -
-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/name/output.json b/tests/test-suite/test-suite-data/hcard/name/output.json deleted file mode 100644 index 4f49bfb..0000000 --- a/tests/test-suite/test-suite-data/hcard/name/output.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "honorific-prefix": ["Dr"], - "given-name": ["John"], - "additional-name": ["Peter"], - "family-name": ["Doe"], - "honorific-suffix": ["MSc","PHD"], - "name": ["Dr John P Doe"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/name/test.json b/tests/test-suite/test-suite-data/hcard/name/test.json deleted file mode 100644 index 0ece186..0000000 --- a/tests/test-suite/test-suite-data/hcard/name/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Name properties", - "description": "hcard", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/single/input.html b/tests/test-suite/test-suite-data/hcard/single/input.html deleted file mode 100644 index c7a0ec0..0000000 --- a/tests/test-suite/test-suite-data/hcard/single/input.html +++ /dev/null @@ -1,14 +0,0 @@ -
- -
John Doe
-
Birthday: January 1st, 2000
-
Role: Designer
-
Location: Brighton
-
Time zone: Eastern Standard Time
- -
Profile details: -
Profile id: http://example.com/profiles/johndoe
-
Details are: Public
-
Last updated: January 1st, 2008 - 13:45
-
-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/single/output.json b/tests/test-suite/test-suite-data/hcard/single/output.json deleted file mode 100644 index f824372..0000000 --- a/tests/test-suite/test-suite-data/hcard/single/output.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["John Doe"], - "given-name": ["John"], - "sort-string": ["John"], - "bday": ["2000-01-01T00:00:00-0800"], - "role": ["Designer"], - "geo": [{ - "value": "Brighton", - "type": ["h-geo"], - "properties": { - "name": ["30.267991;-97.739568"] - } - }], - "tz": ["-05:00"], - "uid": ["http://example.com/profiles/johndoe"], - "class": ["Public"], - "rev": ["2008-01-01T13:45:00"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/single/test.json b/tests/test-suite/test-suite-data/hcard/single/test.json deleted file mode 100644 index 89edc07..0000000 --- a/tests/test-suite/test-suite-data/hcard/single/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Single occurrence properties", - "description": "hcard", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hcard/suite.json b/tests/test-suite/test-suite-data/hcard/suite.json deleted file mode 100644 index c1dab4e..0000000 --- a/tests/test-suite/test-suite-data/hcard/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "hcard parsing tests", - "description": "This page was design to test the parsing of hcard and its output to the newer JSON structure of micorformats 2. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hentry/justahyperlink/input.html b/tests/test-suite/test-suite-data/hentry/justahyperlink/input.html deleted file mode 100644 index 499f16b..0000000 --- a/tests/test-suite/test-suite-data/hentry/justahyperlink/input.html +++ /dev/null @@ -1 +0,0 @@ -microformats.org at 7 \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hentry/justahyperlink/output.json b/tests/test-suite/test-suite-data/hentry/justahyperlink/output.json deleted file mode 100644 index 9ee4ebd..0000000 --- a/tests/test-suite/test-suite-data/hentry/justahyperlink/output.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "items": [{ - "type": ["h-entry"], - "properties": { - "name": ["microformats.org at 7"], - "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hentry/justahyperlink/test.json b/tests/test-suite/test-suite-data/hentry/justahyperlink/test.json deleted file mode 100644 index e401433..0000000 --- a/tests/test-suite/test-suite-data/hentry/justahyperlink/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a hyperlink", - "description": "hentry", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hentry/justaname/input.html b/tests/test-suite/test-suite-data/hentry/justaname/input.html deleted file mode 100644 index 499f16b..0000000 --- a/tests/test-suite/test-suite-data/hentry/justaname/input.html +++ /dev/null @@ -1 +0,0 @@ -microformats.org at 7 \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hentry/justaname/output.json b/tests/test-suite/test-suite-data/hentry/justaname/output.json deleted file mode 100644 index 9ee4ebd..0000000 --- a/tests/test-suite/test-suite-data/hentry/justaname/output.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "items": [{ - "type": ["h-entry"], - "properties": { - "name": ["microformats.org at 7"], - "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hentry/justaname/test.json b/tests/test-suite/test-suite-data/hentry/justaname/test.json deleted file mode 100644 index a18e1c5..0000000 --- a/tests/test-suite/test-suite-data/hentry/justaname/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a name", - "description": "hentry", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hentry/suite.json b/tests/test-suite/test-suite-data/hentry/suite.json deleted file mode 100644 index e47be4e..0000000 --- a/tests/test-suite/test-suite-data/hentry/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "hentry parsing tests", - "description": "This page was design to test the parsing of hentry and its output to the newer JSON structure of micorformats 2. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hentry/summarycontent/input.html b/tests/test-suite/test-suite-data/hentry/summarycontent/input.html deleted file mode 100644 index 2c86ec6..0000000 --- a/tests/test-suite/test-suite-data/hentry/summarycontent/input.html +++ /dev/null @@ -1,19 +0,0 @@ -
-

microformats.org at 7

-
-

Last week the microformats.org community - celebrated its 7th birthday at a gathering hosted by Mozilla in - San Francisco and recognized accomplishments, challenges, and - opportunities.

- -

The microformats tagline “humans first, machines second” - forms the basis of many of our - principles, and - in that regard, we’d like to recognize a few people and - thank them for their years of volunteer service

-
-

Updated - by - Tantek -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hentry/summarycontent/output.json b/tests/test-suite/test-suite-data/hentry/summarycontent/output.json deleted file mode 100644 index edd5aeb..0000000 --- a/tests/test-suite/test-suite-data/hentry/summarycontent/output.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "items": [{ - "type": ["h-entry"], - "properties": { - "name": ["microformats.org at 7"], - "content": [{ - "value": "Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service", - "html": "\n

Last week the microformats.org community \n celebrated its 7th birthday at a gathering hosted by Mozilla in \n San Francisco and recognized accomplishments, challenges, and \n opportunities.

\n\n

The microformats tagline “humans first, machines second” \n forms the basis of many of our \n principles, and \n in that regard, we’d like to recognize a few people and \n thank them for their years of volunteer service

\n " - }], - "summary": ["Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities."], - "updated": ["2012-06-25T17:08:26"], - "author": [{ - "value": "Tantek", - "type": ["h-card"], - "properties": { - "name": ["Tantek"], - "url": ["http://tantek.com/"] - } - }] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Tantek"], - "url": ["http://tantek.com/"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hentry/summarycontent/test.json b/tests/test-suite/test-suite-data/hentry/summarycontent/test.json deleted file mode 100644 index 3f65bcc..0000000 --- a/tests/test-suite/test-suite-data/hentry/summarycontent/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Entry with summary and content", - "description": "hentry", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hnews/all/input.html b/tests/test-suite/test-suite-data/hnews/all/input.html deleted file mode 100644 index f27084a..0000000 --- a/tests/test-suite/test-suite-data/hnews/all/input.html +++ /dev/null @@ -1,37 +0,0 @@ -
-
-

microformats.org at 7

-
-

Last week the microformats.org community - celebrated its 7th birthday at a gathering hosted by Mozilla in - San Francisco and recognized accomplishments, challenges, and - opportunities.

- -

The microformats tagline “humans first, machines second” - forms the basis of many of our - principles, and - in that regard, we’d like to recognize a few people and - thank them for their years of volunteer service

-
-

Updated - by - Tantek -

-
- -

- - (Geo: 37.774921;-122.445202) - - microformats.org - -

-

- Publishing policy -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hnews/all/output.json b/tests/test-suite/test-suite-data/hnews/all/output.json deleted file mode 100644 index 54109ed..0000000 --- a/tests/test-suite/test-suite-data/hnews/all/output.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "items": [{ - "type": ["h-news"], - "properties": { - "entry": [{ - "value": "microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek", - "type": ["h-entry"], - "properties": { - "name": ["microformats.org at 7"], - "summary": ["Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities."], - "updated": ["2012-06-25T17:08:26"], - "author": { - "value": "Tantek", - "type": ["h-card"], - "properties": { - "name": ["Tantek"], - "url": ["http://tantek.com/"] - } - } - } - }], - "dateline": [{ - "value": "San Francisco, CA", - "type": ["h-card"], - "properties": { - "adr": [{ - "value": "San Francisco, CA", - "type": ["h-adr"], - "properties": { - "locality": ["San Francisco"], - "region": ["CA"], - "name": ["San Francisco, CA"] - } - }], - "name": ["San Francisco, CA"] - } - }], - "geo": [{ - "value": "37.774921;-122.445202", - "type": ["h-geo"], - "properties": { - "name": ["37.774921;-122.445202"] - } - }], - "source-org": [{ - "value": "microformats.org", - "type": ["h-card"], - "properties": { - "name": ["microformats.org"], - "url": ["http://microformats.org/"] - } - }], - "name": ["microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek San Francisco, CA (Geo: 37.774921;-122.445202) microformats.org Publishing policy"] - } - },{ - "type": ["rel"], - "properties": { - "bookmark": ["http://microformats.org/2012/06/25/microformats-org-at-7"], - "principles": ["http://microformats.org/wiki/Category:public_domain_license"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hnews/all/test.json b/tests/test-suite/test-suite-data/hnews/all/test.json deleted file mode 100644 index c9d3203..0000000 --- a/tests/test-suite/test-suite-data/hnews/all/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "With dateline vcard", - "description": "hnews", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hnews/minimum/input.html b/tests/test-suite/test-suite-data/hnews/minimum/input.html deleted file mode 100644 index 6dae51d..0000000 --- a/tests/test-suite/test-suite-data/hnews/minimum/input.html +++ /dev/null @@ -1,25 +0,0 @@ -
-
-

microformats.org at 7

-
-

Last week the microformats.org community - celebrated its 7th birthday at a gathering hosted by Mozilla in - San Francisco and recognized accomplishments, challenges, and - opportunities.

- -

The microformats tagline “humans first, machines second” - forms the basis of many of our - principles, and - in that regard, we’d like to recognize a few people and - thank them for their years of volunteer service

-
-

Updated - by - Tantek -

-
- -

- microformats.org -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hnews/minimum/output.json b/tests/test-suite/test-suite-data/hnews/minimum/output.json deleted file mode 100644 index c57b8f4..0000000 --- a/tests/test-suite/test-suite-data/hnews/minimum/output.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "items": [{ - "type": ["h-news"], - "properties": { - "entry": [{ - "value": "microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek", - "type": ["h-entry"], - "properties": { - "name": ["microformats.org at 7"], - "author": { - "value": "Tantek", - "type": ["h-card"], - "properties": { - "name": ["Tantek"], - "url": ["http://tantek.com/"] - } - } - } - }], - "source-org": [{ - "value": "microformats.org", - "type": ["h-card"], - "properties": { - "name": ["microformats.org"], - "url": ["http://microformats.org/"] - } - }], - "name": ["microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek microformats.org"] - } - },{ - "type": ["rel"], - "properties": { - "bookmark": ["http://microformats.org/2012/06/25/microformats-org-at-7"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hnews/minimum/test.json b/tests/test-suite/test-suite-data/hnews/minimum/test.json deleted file mode 100644 index 959d7b0..0000000 --- a/tests/test-suite/test-suite-data/hnews/minimum/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Minimum properties", - "description": "hnews", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hnews/suite.json b/tests/test-suite/test-suite-data/hnews/suite.json deleted file mode 100644 index a4316ec..0000000 --- a/tests/test-suite/test-suite-data/hnews/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "hnews parsing tests", - "description": "This page was design to test the parsing of hnews. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hproduct/aggregate/input.html b/tests/test-suite/test-suite-data/hproduct/aggregate/input.html deleted file mode 100644 index 099123f..0000000 --- a/tests/test-suite/test-suite-data/hproduct/aggregate/input.html +++ /dev/null @@ -1,25 +0,0 @@ -
-

Raspberry Pi

- -

The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.

- More info about the Raspberry Pi -

£29.95

-

- - 9.2 out of - 10 - based on 178 reviews - -

-

Categories: - , - -

-

From: - The Raspberry Pi Foundation - - - Cambridge - UK - -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hproduct/aggregate/output.json b/tests/test-suite/test-suite-data/hproduct/aggregate/output.json deleted file mode 100644 index dc16581..0000000 --- a/tests/test-suite/test-suite-data/hproduct/aggregate/output.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "items": [{ - "type": ["h-product"], - "properties": { - "name": ["Raspberry Pi"], - "photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"], - "description": [{ - "value": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.", - "html": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming." - }], - "url": ["http://www.raspberrypi.org/"], - "price": ["£29.95"], - "review": [{ - "value": "9.2 out of 10 based on 178 reviews", - "type": ["h-review-aggregate"], - "properties": { - "rating": ["9.2"], - "average": ["9.2"], - "best": ["10"], - "count": ["178"] - } - }], - "category": ["Computer","Education"], - "brand": [{ - "value": "From: The Raspberry Pi Foundation - Cambridge UK", - "type": ["h-card"], - "properties": { - "name": ["The Raspberry Pi Foundation"], - "org": ["The Raspberry Pi Foundation"], - "adr": [{ - "value": "Cambridge UK", - "type": ["h-adr"], - "properties": { - "locality": ["Cambridge"], - "country-name": ["UK"], - "name": ["Cambridge UK"] - } - }] - } - }] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hproduct/aggregate/test.json b/tests/test-suite/test-suite-data/hproduct/aggregate/test.json deleted file mode 100644 index 928d51a..0000000 --- a/tests/test-suite/test-suite-data/hproduct/aggregate/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "With h-review-aggregate", - "description": "hproduct", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hproduct/justahyperlink/input.html b/tests/test-suite/test-suite-data/hproduct/justahyperlink/input.html deleted file mode 100644 index 96be7c2..0000000 --- a/tests/test-suite/test-suite-data/hproduct/justahyperlink/input.html +++ /dev/null @@ -1 +0,0 @@ -Raspberry Pi \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hproduct/justahyperlink/output.json b/tests/test-suite/test-suite-data/hproduct/justahyperlink/output.json deleted file mode 100644 index b073a3b..0000000 --- a/tests/test-suite/test-suite-data/hproduct/justahyperlink/output.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "items": [{ - "type": ["h-product"], - "properties": { - "name": ["Raspberry Pi"], - "url": ["http://www.raspberrypi.org/"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hproduct/justahyperlink/test.json b/tests/test-suite/test-suite-data/hproduct/justahyperlink/test.json deleted file mode 100644 index 8ecc35e..0000000 --- a/tests/test-suite/test-suite-data/hproduct/justahyperlink/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a hyperlink", - "description": "hproduct", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hproduct/justaname/input.html b/tests/test-suite/test-suite-data/hproduct/justaname/input.html deleted file mode 100644 index 3b27277..0000000 --- a/tests/test-suite/test-suite-data/hproduct/justaname/input.html +++ /dev/null @@ -1 +0,0 @@ -

Raspberry Pi

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hproduct/justaname/output.json b/tests/test-suite/test-suite-data/hproduct/justaname/output.json deleted file mode 100644 index 61831b3..0000000 --- a/tests/test-suite/test-suite-data/hproduct/justaname/output.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "items": [{ - "type": ["h-product"], - "properties": { - "name": ["Raspberry Pi"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hproduct/justaname/test.json b/tests/test-suite/test-suite-data/hproduct/justaname/test.json deleted file mode 100644 index 7d8211f..0000000 --- a/tests/test-suite/test-suite-data/hproduct/justaname/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a name", - "description": "hproduct", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hproduct/simpleproperties/input.html b/tests/test-suite/test-suite-data/hproduct/simpleproperties/input.html deleted file mode 100644 index ba5d057..0000000 --- a/tests/test-suite/test-suite-data/hproduct/simpleproperties/input.html +++ /dev/null @@ -1,12 +0,0 @@ -
-

Raspberry Pi

- -

The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.

- More info about the Raspberry Pi -

£29.95

-

4.5 out of 5

-

Categories: - , - -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hproduct/simpleproperties/output.json b/tests/test-suite/test-suite-data/hproduct/simpleproperties/output.json deleted file mode 100644 index a5b92c5..0000000 --- a/tests/test-suite/test-suite-data/hproduct/simpleproperties/output.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "items": [{ - "type": ["h-product"], - "properties": { - "name": ["Raspberry Pi"], - "photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"], - "description": [{ - "value": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.", - "html": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming." - }], - "url": ["http://www.raspberrypi.org/"], - "price": ["£29.95"], - "category": ["Computer","Education"], - "review": [{ - "value": "4.5 out of 5", - "type": ["h-review"], - "properties": { - "rating": ["4.5"], - "name": ["4.5 out of 5"] - } - }] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hproduct/simpleproperties/test.json b/tests/test-suite/test-suite-data/hproduct/simpleproperties/test.json deleted file mode 100644 index 90f44e9..0000000 --- a/tests/test-suite/test-suite-data/hproduct/simpleproperties/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "With h-review", - "description": "hproduct", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hproduct/suite.json b/tests/test-suite/test-suite-data/hproduct/suite.json deleted file mode 100644 index e347f49..0000000 --- a/tests/test-suite/test-suite-data/hproduct/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "hproduct parsing tests", - "description": "This page was design to test the parsing of hproduct. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hrecipe/all/input.html b/tests/test-suite/test-suite-data/hrecipe/all/input.html deleted file mode 100644 index 886b827..0000000 --- a/tests/test-suite/test-suite-data/hrecipe/all/input.html +++ /dev/null @@ -1,63 +0,0 @@ -
-

Yorkshire Puddings

-

Makes 6 good sized Yorkshire puddings, the way my mum taught me

- - -

- - - - 4.5 stars out 5 based on - 35 reviews - - - -
-

Ingredients

-
    -
  • 1 egg
  • -
  • 75g plain flour
  • -
  • 70ml milk
  • -
  • 60ml water
  • -
  • Pinch of salt
  • -
-
- -

Time

-
    -
  • Preparation 10 mins
  • -
  • Cook 25 mins
  • -
- - -

Instructions

-
-
    -
  1. Pre-heat oven to 230C or gas mark 8. Pour the vegetable oil evenly into 2 x 4-hole - Yorkshire pudding tins and place in the oven to heat through.
  2. - -
  3. To make the batter, add all the flour into a bowl and beat in the eggs until smooth. - Gradually add the milk and water while beating the mixture. It should be smooth and - without lumps. Finally add a pinch of salt.
  4. - -
  5. Make sure the oil is piping hot before pouring the batter evenly into the tins. - Place in the oven for 20-25 minutes until pudding have risen and look golden brown
  6. -
-
- -

Nutrition

-
    -
  • Calories: 125
  • -
  • Fat: 3.2g
  • -
  • Cholesterol: 77mg
  • -
-

(Amount per pudding)

- -

- Published on by - - Glenn Jones - -

- Photo by dithie -
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hrecipe/all/output.json b/tests/test-suite/test-suite-data/hrecipe/all/output.json deleted file mode 100644 index 6312009..0000000 --- a/tests/test-suite/test-suite-data/hrecipe/all/output.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "items": [ { - "type": ["h-recipe"], - "properties": { - "name": ["Yorkshire Puddings"], - "summary": ["Makes 6 good sized Yorkshire puddings, the way my mum taught me"], - "yield": ["6 good sized Yorkshire puddings"], - "photo": ["http://codebits.glennjones.net/semantic/yorkshire-puddings.jpg"], - "review": [ - { - "value": "4.5 stars out 5 based on 35 reviews", - "type": ["h-review-aggregate"], - "properties": { - "rating": ["4.5 stars out 5 based on"], - "average": ["4.5"], - "count": ["35"], - "name": ["4.5 stars out 5 based on 35 reviews"] - } - } - ], - "ingredient": [ - "1 egg", - "75g plain flour", - "70ml milk", - "60ml water", - "Pinch of salt" - ], - "instructions": [ - "\n
    \n
  1. Pre-heat oven to 230C or gas mark 8. Pour the vegetable oil evenly into 2 x 4-hole \n Yorkshire pudding tins and place in the oven to heat through.
  2. \n \n
  3. To make the batter, add all the flour into a bowl and beat in the eggs until smooth. \n Gradually add the milk and water while beating the mixture. It should be smooth and \n without lumps. Finally add a pinch of salt.
  4. \n \n
  5. Make sure the oil is piping hot before pouring the batter evenly into the tins. \n Place in the oven for 20-25 minutes until pudding have risen and look golden brown
  6. \n
\n " - ], - "nutrition": [ - "Calories: 125", - "Fat: 3.2g", - "Cholesterol: 77mg" - ], - "published": ["2011-10-27"], - "author": [ - { - "value": "Glenn Jones", - "type": ["h-card"], - "properties": { - "name": ["Glenn Jones"], - "url": ["http://glennjones.net"] - } - } - ] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hrecipe/all/test.json b/tests/test-suite/test-suite-data/hrecipe/all/test.json deleted file mode 100644 index d7ba2f7..0000000 --- a/tests/test-suite/test-suite-data/hrecipe/all/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Broken into properties", - "description": "h-recipe", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hrecipe/minimum/input.html b/tests/test-suite/test-suite-data/hrecipe/minimum/input.html deleted file mode 100644 index 0b207b8..0000000 --- a/tests/test-suite/test-suite-data/hrecipe/minimum/input.html +++ /dev/null @@ -1,7 +0,0 @@ -
-

Toast

-
    -
  • Slice of bread
  • -
  • Butter
  • -
-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hrecipe/minimum/output.json b/tests/test-suite/test-suite-data/hrecipe/minimum/output.json deleted file mode 100644 index 29a455e..0000000 --- a/tests/test-suite/test-suite-data/hrecipe/minimum/output.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "items": [{ - "type": ["h-recipe"], - "properties": { - "name": ["Toast"], - "ingredient": ["Slice of bread", "Butter"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hrecipe/minimum/test.json b/tests/test-suite/test-suite-data/hrecipe/minimum/test.json deleted file mode 100644 index aa0bdb5..0000000 --- a/tests/test-suite/test-suite-data/hrecipe/minimum/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Minimum properties", - "description": "h-recipe", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hrecipe/suite.json b/tests/test-suite/test-suite-data/hrecipe/suite.json deleted file mode 100644 index 6c37f97..0000000 --- a/tests/test-suite/test-suite-data/hrecipe/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "h-recipe parsing tests", - "description": "This page was design to test the parsing of h-recipe. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/affiliation/input.html b/tests/test-suite/test-suite-data/hresume/affiliation/input.html deleted file mode 100644 index 25f2110..0000000 --- a/tests/test-suite/test-suite-data/hresume/affiliation/input.html +++ /dev/null @@ -1,12 +0,0 @@ -
-

- Tim Berners-Lee, - invented the World Wide Web. -

- Belongs to following groups: -

- - W3C - -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/affiliation/output.json b/tests/test-suite/test-suite-data/hresume/affiliation/output.json deleted file mode 100644 index 19d86b6..0000000 --- a/tests/test-suite/test-suite-data/hresume/affiliation/output.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "items": [{ - "type": ["h-resume"], - "properties": { - "contact": [{ - "value": "Tim Berners-Lee", - "type": ["h-card"], - "properties": { - "name": ["Tim Berners-Lee"] - } - }], - "summary": ["invented the World Wide Web"], - "affiliation": [{ - "value": "", - "type": ["h-card"], - "properties": { - "name": ["W3C"], - "photo": ["http://www.w3.org/Icons/WWW/w3c_home_nb.png"], - "url": ["http://www.w3.org/"] - } - }] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["W3C"], - "photo": ["http://www.w3.org/Icons/WWW/w3c_home_nb.png"], - "url": ["http://www.w3.org/"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/affiliation/test.json b/tests/test-suite/test-suite-data/hresume/affiliation/test.json deleted file mode 100644 index d829aa2..0000000 --- a/tests/test-suite/test-suite-data/hresume/affiliation/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Affiliations", - "description": "h-resume", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/contact/input.html b/tests/test-suite/test-suite-data/hresume/contact/input.html deleted file mode 100644 index 1b26f6c..0000000 --- a/tests/test-suite/test-suite-data/hresume/contact/input.html +++ /dev/null @@ -1,18 +0,0 @@ -
-
-

Tim Berners-Lee

-

MIT

-

- 32 Vassar Street, - Room 32-G524, - Cambridge, - MA - 02139, - USA. - (Work) -

-

Tel:+1 (617) 253 5702

-

Email:

-
-

Invented the World Wide Web.

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/contact/output.json b/tests/test-suite/test-suite-data/hresume/contact/output.json deleted file mode 100644 index 7ab4a8b..0000000 --- a/tests/test-suite/test-suite-data/hresume/contact/output.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "items": [{ - "type": ["h-resume"], - "properties": { - "contact": [{ - "value": "Tim Berners-Lee MIT 32 Vassar Street, Room 32-G524, Cambridge, MA 02139, USA. (Work) Tel:+1 (617) 253 5702 Email:timbl@w3.org", - "type": ["h-card"], - "properties": { - "name": ["Tim Berners-Lee"], - "org": ["MIT"], - "adr": [{ - "value": "32 Vassar Street, Room 32-G524, Cambridge, MA 02139, USA. (Work)", - "type": ["h-adr"], - "properties": { - "street-address": ["32 Vassar Street"], - "extended-address": ["Room 32-G524"], - "locality": ["Cambridge"], - "region": ["MA"], - "postal-code": ["02139"], - "country-name": ["USA"], - "name": ["32 Vassar Street, Room 32-G524, Cambridge, MA 02139, USA. (Work)"] - } - }], - "tel": ["+1 (617) 253 5702"], - "email": ["mailto:timbl@w3.org"] - } - }], - "summary": ["Invented the World Wide Web."] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Tim Berners-Lee"], - "org": ["MIT"], - "adr": [{ - "value": "32 Vassar Street, Room 32-G524, Cambridge, MA 02139, USA. (Work)", - "type": ["h-adr"], - "properties": { - "street-address": ["32 Vassar Street"], - "extended-address": ["Room 32-G524"], - "locality": ["Cambridge"], - "region": ["MA"], - "postal-code": ["02139"], - "country-name": ["USA"], - "name": ["32 Vassar Street, Room 32-G524, Cambridge, MA 02139, USA. (Work)"] - } - }], - "tel": ["+1 (617) 253 5702"], - "email": ["mailto:timbl@w3.org"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/contact/test.json b/tests/test-suite/test-suite-data/hresume/contact/test.json deleted file mode 100644 index 17f1b96..0000000 --- a/tests/test-suite/test-suite-data/hresume/contact/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Contact", - "description": "h-resume", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/education/input.html b/tests/test-suite/test-suite-data/hresume/education/input.html deleted file mode 100644 index f1a717a..0000000 --- a/tests/test-suite/test-suite-data/hresume/education/input.html +++ /dev/null @@ -1,13 +0,0 @@ -
-
-

Tim Berners-Lee

-

Director of the World Wide Web Foundation

-
-

Invented the World Wide Web.


-

- The Queen's College, Oxford University, - BA Hons (I) Physics - – - -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/education/output.json b/tests/test-suite/test-suite-data/hresume/education/output.json deleted file mode 100644 index 37c3930..0000000 --- a/tests/test-suite/test-suite-data/hresume/education/output.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "items": [{ - "type": ["h-resume"], - "properties": { - "contact": [{ - "value": "Tim Berners-Lee Director of the World Wide Web Foundation", - "type": ["h-card"], - "properties": { - "name": ["Tim Berners-Lee"], - "title": ["Director of the World Wide Web Foundation"] - } - }], - "summary": ["Invented the World Wide Web."], - "education": [{ - "value": "The Queen's College, Oxford University, BA Hons (I) Physics 1973 - 1976", - "type": ["h-event", "h-card"], - "properties": { - "name": ["The Queen's College, Oxford University"], - "org": ["The Queen's College, Oxford University"], - "description": ["BA Hons (I) Physics"], - "start": ["1973-09"], - "end": ["1976-06"] - } - }] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Tim Berners-Lee"], - "title": ["Director of the World Wide Web Foundation"] - } - },{ - "type": ["h-event"], - "properties": { - "name": ["The Queen's College, Oxford University"], - "description": ["BA Hons (I) Physics"], - "start": ["1973-09"], - "end": ["1976-06"] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["The Queen's College, Oxford University"], - "org": ["The Queen's College, Oxford University"], - "description": ["BA Hons (I) Physics"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/education/test.json b/tests/test-suite/test-suite-data/hresume/education/test.json deleted file mode 100644 index ed6b2ef..0000000 --- a/tests/test-suite/test-suite-data/hresume/education/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Educational experience", - "description": "h-resume", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/justaname/input.html b/tests/test-suite/test-suite-data/hresume/justaname/input.html deleted file mode 100644 index 28943c5..0000000 --- a/tests/test-suite/test-suite-data/hresume/justaname/input.html +++ /dev/null @@ -1 +0,0 @@ -

Tim Berners-Lee, invented the World Wide Web.

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/justaname/output.json b/tests/test-suite/test-suite-data/hresume/justaname/output.json deleted file mode 100644 index d5dd9a4..0000000 --- a/tests/test-suite/test-suite-data/hresume/justaname/output.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "items": [{ - "type": ["h-resume"], - "properties": { - "name": ["Tim Berners-Lee, invented the World Wide Web."] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/justaname/test.json b/tests/test-suite/test-suite-data/hresume/justaname/test.json deleted file mode 100644 index 60a8b40..0000000 --- a/tests/test-suite/test-suite-data/hresume/justaname/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a name", - "description": "h-resume", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/skill/input.html b/tests/test-suite/test-suite-data/hresume/skill/input.html deleted file mode 100644 index c31b7f8..0000000 --- a/tests/test-suite/test-suite-data/hresume/skill/input.html +++ /dev/null @@ -1,13 +0,0 @@ -
- -

- Tim Berners-Lee, - invented the World Wide Web. -

- Skills: -
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/skill/output.json b/tests/test-suite/test-suite-data/hresume/skill/output.json deleted file mode 100644 index e083fbf..0000000 --- a/tests/test-suite/test-suite-data/hresume/skill/output.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "items": [{ - "type": ["h-resume"], - "properties": { - "contact": [{ - "value": "Tim Berners-Lee", - "type": ["h-card"], - "properties": { - "name": ["Tim Berners-Lee"] - } - }], - "summary": ["invented the World Wide Web"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/skill/test.json b/tests/test-suite/test-suite-data/hresume/skill/test.json deleted file mode 100644 index 66d35d3..0000000 --- a/tests/test-suite/test-suite-data/hresume/skill/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Skills", - "description": "h-resume", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/suite.json b/tests/test-suite/test-suite-data/hresume/suite.json deleted file mode 100644 index 8336b38..0000000 --- a/tests/test-suite/test-suite-data/hresume/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "hresume parsing tests", - "description": "This page was design to test the parsing of hresume and its output to the newer JSON structure of micorformats 2. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/work/input.html b/tests/test-suite/test-suite-data/hresume/work/input.html deleted file mode 100644 index e360173..0000000 --- a/tests/test-suite/test-suite-data/hresume/work/input.html +++ /dev/null @@ -1,15 +0,0 @@ -
-
-

Tim Berners-Lee

-

Director of the World Wide Web Foundation

-
-

Invented the World Wide Web.


-
-

Director

-

World Wide Web Foundation

-

- – Present - -

-
-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/work/output.json b/tests/test-suite/test-suite-data/hresume/work/output.json deleted file mode 100644 index 9bcfea6..0000000 --- a/tests/test-suite/test-suite-data/hresume/work/output.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "items": [{ - "type": ["h-resume"], - "properties": { - "contact": [{ - "value": "Tim Berners-Lee Director of the World Wide Web Foundation", - "type": ["h-card"], - "properties": { - "name": ["Tim Berners-Lee"], - "title": ["Director of the World Wide Web Foundation"] - } - }], - "summary": ["Invented the World Wide Web."], - "experience": [{ - "value": "Director World Wide Web Foundation Jan 2009 - Present (2 years 11 month)", - "type": ["h-event", "h-card"], - "properties": { - "title": ["Director"], - "name": ["World Wide Web Foundation"], - "org": ["World Wide Web Foundation"], - "url": ["http://www.webfoundation.org/"], - "start": ["2009-01-18"], - "duration": ["P2Y11M"] - } - }] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Tim Berners-Lee"], - "title": ["Director of the World Wide Web Foundation"] - } - },{ - "type": ["h-event"], - "properties": { - "name": ["World Wide Web Foundation"], - "url": ["http://www.webfoundation.org/"], - "start": ["2009-01-18"], - "duration": ["P2Y11M"] - } - },{ - "type": ["h-card"], - "properties": { - "title": ["Director"], - "name": ["World Wide Web Foundation"], - "org": ["World Wide Web Foundation"], - "url": ["http://www.webfoundation.org/"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hresume/work/test.json b/tests/test-suite/test-suite-data/hresume/work/test.json deleted file mode 100644 index 828c387..0000000 --- a/tests/test-suite/test-suite-data/hresume/work/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Work experience", - "description": "h-resume", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview-aggregate/hcard/input.html b/tests/test-suite/test-suite-data/hreview-aggregate/hcard/input.html deleted file mode 100644 index d98713f..0000000 --- a/tests/test-suite/test-suite-data/hreview-aggregate/hcard/input.html +++ /dev/null @@ -1,18 +0,0 @@ -
-
-

Mediterranean Wraps

-

- - 433 S California Ave, - Palo Alto, - CA - - - (650) 321-8189 -

-
-

- 9.2 out of - 10 - based on 17 reviews -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview-aggregate/hcard/output.json b/tests/test-suite/test-suite-data/hreview-aggregate/hcard/output.json deleted file mode 100644 index 8c33399..0000000 --- a/tests/test-suite/test-suite-data/hreview-aggregate/hcard/output.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "items": [{ - "type": ["h-review-aggregate"], - "properties": { - "item": [{ - "value": "Mediterranean Wraps 433 S California Ave, Palo Alto, CA - (650) 321-8189", - "type": ["h-item","h-card"], - "properties": { - "name": ["Mediterranean Wraps"], - "adr": [{ - "value": "433 S California Ave, Palo Alto, CA", - "type": ["h-adr"], - "properties": { - "street-address": ["433 S California Ave"], - "locality": ["Palo Alto"], - "region": ["CA"] - } - }], - "tel": ["(650) 321-8189"] - } - }], - "rating": ["9.2"], - "average": ["9.2"], - "best": ["10"], - "count": ["17"], - "name": ["Mediterranean Wraps 433 S California Ave, Palo Alto, CA - (650) 321-8189 9.2 out of 10 based on 17 reviews"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview-aggregate/hcard/test.json b/tests/test-suite/test-suite-data/hreview-aggregate/hcard/test.json deleted file mode 100644 index 7c6c4a6..0000000 --- a/tests/test-suite/test-suite-data/hreview-aggregate/hcard/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "With item as a vcard", - "description": "hreview-aggregate", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview-aggregate/justahyperlink/input.html b/tests/test-suite/test-suite-data/hreview-aggregate/justahyperlink/input.html deleted file mode 100644 index 33391aa..0000000 --- a/tests/test-suite/test-suite-data/hreview-aggregate/justahyperlink/input.html +++ /dev/null @@ -1,6 +0,0 @@ -

- - Mediterranean Wraps - - Rated: - 4.5 out of 5 (6 reviews) -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview-aggregate/justahyperlink/output.json b/tests/test-suite/test-suite-data/hreview-aggregate/justahyperlink/output.json deleted file mode 100644 index 9d598f5..0000000 --- a/tests/test-suite/test-suite-data/hreview-aggregate/justahyperlink/output.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "items": [{ - "type": ["h-review-aggregate"], - "properties": { - "item": [{ - "value": "", - "type": ["h-item"], - "properties": { - "name": ["Mediterranean Wraps"], - "url": ["http://example.com/mediterraneanwraps"] - } - }], - "rating": ["4.5"], - "count": ["6"], - "name": ["Mediterranean Wraps - Rated: 4.5 out of 5 (6 reviews)"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview-aggregate/justahyperlink/test.json b/tests/test-suite/test-suite-data/hreview-aggregate/justahyperlink/test.json deleted file mode 100644 index 449cf08..0000000 --- a/tests/test-suite/test-suite-data/hreview-aggregate/justahyperlink/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Minimum properties", - "description": "hreview-aggregate", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview-aggregate/suite.json b/tests/test-suite/test-suite-data/hreview-aggregate/suite.json deleted file mode 100644 index 373baf9..0000000 --- a/tests/test-suite/test-suite-data/hreview-aggregate/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "hreview-aggregate parsing tests", - "description": "This page was design to test the parsing of hreview-aggregate. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview-aggregate/vevent/input.html b/tests/test-suite/test-suite-data/hreview-aggregate/vevent/input.html deleted file mode 100644 index e017442..0000000 --- a/tests/test-suite/test-suite-data/hreview-aggregate/vevent/input.html +++ /dev/null @@ -1,13 +0,0 @@ -
-
-

Fullfrontal

-

A one day JavaScript Conference held in Brighton

-

-
- -

- 9.9 out of - 10 - based on 62 reviews -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview-aggregate/vevent/output.json b/tests/test-suite/test-suite-data/hreview-aggregate/vevent/output.json deleted file mode 100644 index 2ed7d73..0000000 --- a/tests/test-suite/test-suite-data/hreview-aggregate/vevent/output.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "items": [{ - "type": ["h-review-aggregate"], - "properties": { - "item": [{ - "value": "Fullfrontal A one day JavaScript Conference held in Brighton 9th November 2012", - "type": ["h-item","h-event"], - "properties": { - "name": ["Fullfrontal"], - "description": ["A one day JavaScript Conference held in Brighton"], - "start": ["2012-11-09"] - } - }], - "rating": ["9.9"], - "average": ["9.9"], - "best": ["10"], - "count": ["62"], - "name": ["Fullfrontal A one day JavaScript Conference held in Brighton 9th November 2012 9.9 out of 10 based on 62 reviews"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview-aggregate/vevent/test.json b/tests/test-suite/test-suite-data/hreview-aggregate/vevent/test.json deleted file mode 100644 index 3e04d62..0000000 --- a/tests/test-suite/test-suite-data/hreview-aggregate/vevent/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "With item as a vevent", - "description": "hreview-aggregate", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/hyperlink/input.html b/tests/test-suite/test-suite-data/hreview/hyperlink/input.html deleted file mode 100644 index b3d81c1..0000000 --- a/tests/test-suite/test-suite-data/hreview/hyperlink/input.html +++ /dev/null @@ -1 +0,0 @@ -Crepes on Cole \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/hyperlink/output.json b/tests/test-suite/test-suite-data/hreview/hyperlink/output.json deleted file mode 100644 index 4e46571..0000000 --- a/tests/test-suite/test-suite-data/hreview/hyperlink/output.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "items": [{ - "type": ["h-review"], - "properties": { - "name": ["Crepes on Cole"], - "url": ["https://plus.google.com/116941523817079328322/about"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/hyperlink/test.json b/tests/test-suite/test-suite-data/hreview/hyperlink/test.json deleted file mode 100644 index da3fa25..0000000 --- a/tests/test-suite/test-suite-data/hreview/hyperlink/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a hyperlink", - "description": "hreview", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/implieditem/input.html b/tests/test-suite/test-suite-data/hreview/implieditem/input.html deleted file mode 100644 index 3f835b1..0000000 --- a/tests/test-suite/test-suite-data/hreview/implieditem/input.html +++ /dev/null @@ -1,4 +0,0 @@ -
- Crepes on Cole -

4.7 out of 5 stars

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/implieditem/output.json b/tests/test-suite/test-suite-data/hreview/implieditem/output.json deleted file mode 100644 index 48e4661..0000000 --- a/tests/test-suite/test-suite-data/hreview/implieditem/output.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "items": [{ - "type": ["h-review"], - "properties": { - "item": [{ - "value": "Crepes on Cole", - "type": ["h-item"], - "properties": { - "name": ["Crepes on Cole"], - "url": ["http://example.com/crepeoncole"] - } - }], - "rating": ["4.7"], - "name": ["Crepes on Cole 4.7 out of 5 stars"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/implieditem/test.json b/tests/test-suite/test-suite-data/hreview/implieditem/test.json deleted file mode 100644 index fd14bf0..0000000 --- a/tests/test-suite/test-suite-data/hreview/implieditem/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "With implied item name and url", - "description": "hreview", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/item/input.html b/tests/test-suite/test-suite-data/hreview/item/input.html deleted file mode 100644 index ab35ca1..0000000 --- a/tests/test-suite/test-suite-data/hreview/item/input.html +++ /dev/null @@ -1,7 +0,0 @@ -
-

- - Crepes on Cole -

-

5 out of 5 stars

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/item/output.json b/tests/test-suite/test-suite-data/hreview/item/output.json deleted file mode 100644 index 5d0658e..0000000 --- a/tests/test-suite/test-suite-data/hreview/item/output.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "items": [{ - "type": ["h-review"], - "properties": { - - "item": [{ - "value": "Crepes on Cole", - "type": ["h-item"], - "properties": { - "photo": ["http://example.com/images/photo.gif"], - "name": ["Crepes on Cole"], - "url": ["http://example.com/crepeoncole"] - } - }], - "rating": ["5"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/item/test.json b/tests/test-suite/test-suite-data/hreview/item/test.json deleted file mode 100644 index 36d9e02..0000000 --- a/tests/test-suite/test-suite-data/hreview/item/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "With item", - "description": "hreview", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/justaname/input.html b/tests/test-suite/test-suite-data/hreview/justaname/input.html deleted file mode 100644 index fecbd66..0000000 --- a/tests/test-suite/test-suite-data/hreview/justaname/input.html +++ /dev/null @@ -1 +0,0 @@ -

Crepes on Cole

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/justaname/output.json b/tests/test-suite/test-suite-data/hreview/justaname/output.json deleted file mode 100644 index 12e27cf..0000000 --- a/tests/test-suite/test-suite-data/hreview/justaname/output.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "items": [{ - "type": ["h-review"], - "properties": { - "name": ["Crepes on Cole"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/justaname/test.json b/tests/test-suite/test-suite-data/hreview/justaname/test.json deleted file mode 100644 index da57892..0000000 --- a/tests/test-suite/test-suite-data/hreview/justaname/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a name", - "description": "hreview", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/photo/input.html b/tests/test-suite/test-suite-data/hreview/photo/input.html deleted file mode 100644 index 60f6670..0000000 --- a/tests/test-suite/test-suite-data/hreview/photo/input.html +++ /dev/null @@ -1 +0,0 @@ -Crepes on Cole \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/photo/output.json b/tests/test-suite/test-suite-data/hreview/photo/output.json deleted file mode 100644 index a104efa..0000000 --- a/tests/test-suite/test-suite-data/hreview/photo/output.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "items": [{ - "type": ["h-review"], - "properties": { - "name": ["Crepes on Cole"], - "photo": ["http://example.com/images/photo.gif"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/photo/test.json b/tests/test-suite/test-suite-data/hreview/photo/test.json deleted file mode 100644 index 400ce3c..0000000 --- a/tests/test-suite/test-suite-data/hreview/photo/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Just a photo", - "description": "hreview", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/suite.json b/tests/test-suite/test-suite-data/hreview/suite.json deleted file mode 100644 index 166d489..0000000 --- a/tests/test-suite/test-suite-data/hreview/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "hreview parsing tests", - "description": "This page was design to test the parsing of hreview. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/vcard/input.html b/tests/test-suite/test-suite-data/hreview/vcard/input.html deleted file mode 100644 index 02ba16a..0000000 --- a/tests/test-suite/test-suite-data/hreview/vcard/input.html +++ /dev/null @@ -1,23 +0,0 @@ -
- 5 out of 5 stars -

Crepes on Cole is awesome

- - Reviewer: Tantek - - - -
-

- Crepes on Cole is one of the best little - creperies in San Francisco. - Excellent food and service. Plenty of tables in a variety of sizes - for parties large and small. Window seating makes for excellent - people watching to/from the N-Judah which stops right outside. - I've had many fun social gatherings here, as well as gotten - plenty of work done thanks to neighborhood WiFi. -

-
-

Visit date: April 2005

-

Food eaten:

-

Permanent link for review: http://example.com/crepe

-

Creative Commons Attribution-ShareAlike License

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/vcard/output.json b/tests/test-suite/test-suite-data/hreview/vcard/output.json deleted file mode 100644 index e95e65c..0000000 --- a/tests/test-suite/test-suite-data/hreview/vcard/output.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "items": [{ - "type": ["h-review"], - "properties": { - "rating": ["5"], - "name": ["Crepes on Cole is awesome"], - "reviewer": [{ - "value": "Reviewer: Tantek -", - "type": ["h-card"], - "properties": { - "name": ["Tantek"] - } - }], - "description": [{ - "value": "Crepes on Cole is one of the best little creperies in San Francisco. Excellent food and service. Plenty of tables in a variety of sizes for parties large and small. Window seating makes for excellent people watching to/from the N-Judah which stops right outside. I've had many fun social gatherings here, as well as gotten plenty of work done thanks to neighborhood WiFi.", - "html": "\n

\n Crepes on Cole is one of the best little \n creperies in San Francisco.\n Excellent food and service. Plenty of tables in a variety of sizes \n for parties large and small. Window seating makes for excellent \n people watching to/from the N-Judah which stops right outside. \n I've had many fun social gatherings here, as well as gotten \n plenty of work done thanks to neighborhood WiFi.\n

\n " - }], - "item": [{ - "value": "Crepes on Cole is one of the best little creperies in San Francisco. Excellent food and service. Plenty of tables in a variety of sizes for parties large and small. Window seating makes for excellent people watching to/from the N-Judah which stops right outside. I've had many fun social gatherings here, as well as gotten plenty of work done thanks to neighborhood WiFi.", - "type": ["h-item", "h-card"], - "properties": { - "name": ["Crepes on Cole"], - "org": ["Crepes on Cole"], - "adr": [{ - "value": "San Francisco", - "type": ["h-adr"], - "properties": { - "locality": ["San Francisco"], - "name": ["San Francisco"] - } - }] - } - }], - "category": ["crepe"], - "url": ["http://example.com/crepe"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/hreview/vcard/test.json b/tests/test-suite/test-suite-data/hreview/vcard/test.json deleted file mode 100644 index 74ef602..0000000 --- a/tests/test-suite/test-suite-data/hreview/vcard/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "With vcard item", - "description": "hreview", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/includes/hcarditemref/input.html b/tests/test-suite/test-suite-data/includes/hcarditemref/input.html deleted file mode 100644 index b031298..0000000 --- a/tests/test-suite/test-suite-data/includes/hcarditemref/input.html +++ /dev/null @@ -1,16 +0,0 @@ -
- Brendan Eich -
-
- Mitchell Baker -
- -

Mozilla

-

- 665 3rd St. - Suite 207 - San Francisco, - CA - 94107 - U.S.A. -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/includes/hcarditemref/output.json b/tests/test-suite/test-suite-data/includes/hcarditemref/output.json deleted file mode 100644 index 8b0516a..0000000 --- a/tests/test-suite/test-suite-data/includes/hcarditemref/output.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["Brendan Eich"], - "org": ["Mozilla"], - "adr": [{ - "value": "665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.", - "type": ["h-adr"], - "properties": { - "street-address": ["665 3rd St."], - "extended-address": ["Suite 207"], - "locality": ["San Francisco"], - "region": ["CA"], - "postal-code": ["94107"], - "country-name": ["U.S.A."], - "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."] - } - }] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Mitchell Baker"], - "org": ["Mozilla"], - "adr": [{ - "value": "665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.", - "type": ["h-adr"], - "properties": { - "street-address": ["665 3rd St."], - "extended-address": ["Suite 207"], - "locality": ["San Francisco"], - "region": ["CA"], - "postal-code": ["94107"], - "country-name": ["U.S.A."], - "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."] - } - }] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/includes/hcarditemref/test.json b/tests/test-suite/test-suite-data/includes/hcarditemref/test.json deleted file mode 100644 index 94d1953..0000000 --- a/tests/test-suite/test-suite-data/includes/hcarditemref/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "itemref include pattern - h-card", - "description": "h-card", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/includes/heventitemref/input.html b/tests/test-suite/test-suite-data/includes/heventitemref/input.html deleted file mode 100644 index cef8865..0000000 --- a/tests/test-suite/test-suite-data/includes/heventitemref/input.html +++ /dev/null @@ -1,25 +0,0 @@ -
- Monetizing Android Apps - spaekers: - Chrix Finne, - Kenneth Lui - - - Room 10 - -
-
- New Low-Level Media APIs in Android - spaekers: - Dave Burke - - - Room 11 - -
- -

- Session 01 is between: - to - -

-

- Moscone Center, - San Francisco -

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/includes/heventitemref/output.json b/tests/test-suite/test-suite-data/includes/heventitemref/output.json deleted file mode 100644 index fcf13a0..0000000 --- a/tests/test-suite/test-suite-data/includes/heventitemref/output.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "items": [{ - "type": ["h-event"], - "properties": { - "name": ["Monetizing Android Apps"], - "speaker": ["Chrix Finne","Kenneth Lui"], - "location": [{ - "value": "Room 10 Moscone Center, San Francisco", - "type": ["h-adr"], - "properties": { - "extended-address": ["Room 10", "Moscone Center"], - "locality": ["San Francisco"], - "name": ["Room 10 Moscone Center, San Francisco"] - } - }], - "start": ["2012-06-27T15:45:00-0800"], - "end": ["2012-06-27T16:45:00-0800"] - } - },{ - "type": ["h-event"], - "properties": { - "name": ["New Low-Level Media APIs in Android"], - "speaker": ["Dave Burke"], - "location": [{ - "value": "Room 11 Moscone Center, San Francisco", - "type": ["h-adr"], - "properties": { - "extended-address": ["Room 11", "Moscone Center"], - "locality": ["San Francisco"], - "name": ["Room 11 Moscone Center, San Francisco"] - } - }], - "start": ["2012-06-27T15:45:00-0800"], - "end": ["2012-06-27T16:45:00-0800"] - } - },{ - "type": ["h-adr"], - "properties": { - "extended-address": ["Room 10", "Moscone Center"], - "locality": ["San Francisco"], - "name": ["Room 10 Moscone Center, San Francisco"] - } - },{ - "type": ["h-adr"], - "properties": { - "extended-address": ["Room 11", "Moscone Center"], - "locality": ["San Francisco"], - "name": ["Room 11 Moscone Center, San Francisco"] - } - } - ] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/includes/heventitemref/test.json b/tests/test-suite/test-suite-data/includes/heventitemref/test.json deleted file mode 100644 index 349f858..0000000 --- a/tests/test-suite/test-suite-data/includes/heventitemref/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "itemref include pattern - h-event", - "description": "h-card", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/includes/hyperlink/input.html b/tests/test-suite/test-suite-data/includes/hyperlink/input.html deleted file mode 100644 index 5bf9bbe..0000000 --- a/tests/test-suite/test-suite-data/includes/hyperlink/input.html +++ /dev/null @@ -1,18 +0,0 @@ -
- Ben Ward - Twitter -
-
- Dan Webb - Twitter -
- -
-

Twitter

-

- 1355 Market St, - San Francisco, - CA - 94103 -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/includes/hyperlink/output.json b/tests/test-suite/test-suite-data/includes/hyperlink/output.json deleted file mode 100644 index c6e9545..0000000 --- a/tests/test-suite/test-suite-data/includes/hyperlink/output.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["Ben Ward"], - "org": ["Twitter"], - "adr": [{ - "value": "1355 Market St, San Francisco, CA 94103", - "type": ["h-adr"], - "properties": { - "street-address": ["1355 Market St"], - "locality": ["San Francisco"], - "region": ["CA"], - "postal-code": ["94103"], - "name": ["1355 Market St, San Francisco, CA 94103"] - } - }] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Dan Webb"], - "org": ["Twitter"], - "adr": [{ - "value": "1355 Market St, San Francisco, CA 94103", - "type": ["h-adr"], - "properties": { - "street-address": ["1355 Market St"], - "locality": ["San Francisco"], - "region": ["CA"], - "postal-code": ["94103"], - "name": ["1355 Market St, San Francisco, CA 94103"] - } - }] - } - } - ] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/includes/hyperlink/test.json b/tests/test-suite/test-suite-data/includes/hyperlink/test.json deleted file mode 100644 index f2f6479..0000000 --- a/tests/test-suite/test-suite-data/includes/hyperlink/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Hyperlink header include pattern", - "description": "h-card", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/includes/object/input.html b/tests/test-suite/test-suite-data/includes/object/input.html deleted file mode 100644 index e810bf0..0000000 --- a/tests/test-suite/test-suite-data/includes/object/input.html +++ /dev/null @@ -1,23 +0,0 @@ -
- HTML5 & CSS3 latest features in action! - - David Rousset - - - -
-
- Building High-Performing JavaScript for Modern Engines - - John-David Dalton and - Amanda Silver - - - -
- - -
-

Build Conference

-

- Redmond, - Washington, - USA -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/includes/object/output.json b/tests/test-suite/test-suite-data/includes/object/output.json deleted file mode 100644 index 76cb97e..0000000 --- a/tests/test-suite/test-suite-data/includes/object/output.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "items": [{ - "type": ["h-event"], - "properties": { - "name": ["HTML5 & CSS3 latest features in action!"], - "speaker": ["David Rousset"], - "summary": ["Build Conference"], - "start": ["2012-10-30T11:45:00-0800"], - "location": [{ - "value": "Redmond, Washington, USA", - "type": ["h-adr"], - "properties": { - "locality": ["Redmond"], - "region": ["Washington"], - "country-name": ["USA"], - "name": ["Redmond, Washington, USA"] - } - }] - } - },{ - "type": ["h-event"], - "properties": { - "name": ["Building High-Performing JavaScript for Modern Engines"], - "speaker": ["John-David Dalton","Amanda Silver"], - "summary": ["Build Conference"], - "start": ["2012-10-31T11:15:00-0800"], - "location": [{ - "value": "Redmond, Washington, USA", - "type": ["h-adr"], - "properties": { - "locality": ["Redmond"], - "region": ["Washington"], - "country-name": ["USA"], - "name": ["Redmond, Washington, USA"] - } - }] - } - } - ] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/includes/object/test.json b/tests/test-suite/test-suite-data/includes/object/test.json deleted file mode 100644 index 410c263..0000000 --- a/tests/test-suite/test-suite-data/includes/object/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Object include pattern", - "description": "h-card", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/includes/suite.json b/tests/test-suite/test-suite-data/includes/suite.json deleted file mode 100644 index 06f654e..0000000 --- a/tests/test-suite/test-suite-data/includes/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "include pattern tests", - "description": "This page was design to test the parsing of includes. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/includes/table/input.html b/tests/test-suite/test-suite-data/includes/table/input.html deleted file mode 100644 index 14ce424..0000000 --- a/tests/test-suite/test-suite-data/includes/table/input.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - -
Opera
Chris Mills
Erik Möller
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/includes/table/output.json b/tests/test-suite/test-suite-data/includes/table/output.json deleted file mode 100644 index 32f5235..0000000 --- a/tests/test-suite/test-suite-data/includes/table/output.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["Chris Mills"], - "url": ["http://dev.opera.com/"], - "org": ["Opera"] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Erik Möller"], - "url": ["http://dev.opera.com/"], - "org": ["Opera"] - } - } - ] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/includes/table/test.json b/tests/test-suite/test-suite-data/includes/table/test.json deleted file mode 100644 index c52d2eb..0000000 --- a/tests/test-suite/test-suite-data/includes/table/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Table header include pattern", - "description": "h-card", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/mixed-versions/mixedpropertries/input.html b/tests/test-suite/test-suite-data/mixed-versions/mixedpropertries/input.html deleted file mode 100644 index da066fa..0000000 --- a/tests/test-suite/test-suite-data/mixed-versions/mixedpropertries/input.html +++ /dev/null @@ -1,13 +0,0 @@ -
-

- Mozilla Foundation -

-

- 665 3rd St. - Suite 207 - San Francisco, - CA - 94107 - U.S.A. -

-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/mixed-versions/mixedpropertries/output.json b/tests/test-suite/test-suite-data/mixed-versions/mixedpropertries/output.json deleted file mode 100644 index df1f09c..0000000 --- a/tests/test-suite/test-suite-data/mixed-versions/mixedpropertries/output.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["Mozilla Foundation"], - "org": ["Mozilla Foundation"], - "url": ["http://mozilla.org/"], - "adr": [{ - "value": "665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.", - "type": ["h-adr"], - "properties": { - "street-address": ["665 3rd St."], - "extended-address": ["Suite 207"], - "locality": ["San Francisco"], - "region": ["CA"], - "postal-code": ["94107"], - "country-name": ["U.S.A."], - "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."] - } - }] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/mixed-versions/mixedpropertries/test.json b/tests/test-suite/test-suite-data/mixed-versions/mixedpropertries/test.json deleted file mode 100644 index 31af209..0000000 --- a/tests/test-suite/test-suite-data/mixed-versions/mixedpropertries/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Mixed propertries form different versions", - "description": "h-card", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/mixed-versions/mixedroots/input.html b/tests/test-suite/test-suite-data/mixed-versions/mixedroots/input.html deleted file mode 100644 index a65045e..0000000 --- a/tests/test-suite/test-suite-data/mixed-versions/mixedroots/input.html +++ /dev/null @@ -1,15 +0,0 @@ -
-
-

Tim Berners-Lee

-

Director of the World Wide Web Foundation

-
-

Invented the World Wide Web.


-
-

Director

-

World Wide Web Foundation

-

- – Present - -

-
-
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/mixed-versions/mixedroots/output.json b/tests/test-suite/test-suite-data/mixed-versions/mixedroots/output.json deleted file mode 100644 index 2bd57e3..0000000 --- a/tests/test-suite/test-suite-data/mixed-versions/mixedroots/output.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "items": [{ - "type": ["h-resume"], - "properties": { - "contact": [{ - "value": "Tim Berners-Lee Director of the World Wide Web Foundation", - "type": ["h-card"], - "properties": { - "name": ["Tim Berners-Lee"], - "title": ["Director of the World Wide Web Foundation"] - } - }], - "summary": ["Invented the World Wide Web."], - "experience": [{ - "value": "Director World Wide Web Foundation Jan 2009 - Present (2 years 11 month)", - "type": ["h-event", "h-card"], - "properties": { - "org": ["World Wide Web Foundation"], - "name": ["World Wide Web Foundation"], - "url": ["http://www.webfoundation.org/"], - "start": ["2009-01-18"], - "duration": ["P2Y11M"], - "title": ["Director"] - } - }] - } - },{ - "type": ["h-card"], - "properties": { - "name": ["Tim Berners-Lee"], - "title": ["Director of the World Wide Web Foundation"] - } - },{ - "type": ["h-event"], - "properties": { - "org": ["World Wide Web Foundation"], - "name": ["World Wide Web Foundation"], - "url": ["http://www.webfoundation.org/"], - "start": ["2009-01-18"], - "duration": ["P2Y11M"] - } - },{ - "type": ["h-card"], - "properties": { - "title": ["Director"], - "name": ["World Wide Web Foundation"], - "org": ["World Wide Web Foundation"], - "url": ["http://www.webfoundation.org/"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/mixed-versions/mixedroots/test.json b/tests/test-suite/test-suite-data/mixed-versions/mixedroots/test.json deleted file mode 100644 index 9417cd7..0000000 --- a/tests/test-suite/test-suite-data/mixed-versions/mixedroots/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Mixed roots form different versions", - "description": "h-resume", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/mixed-versions/suite.json b/tests/test-suite/test-suite-data/mixed-versions/suite.json deleted file mode 100644 index 2db8de1..0000000 --- a/tests/test-suite/test-suite-data/mixed-versions/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "h-adr parsing tests", - "description": "This page was design to test the parsing of mark-up which mixes version 1 and 2 microformats. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/mixed-versions/tworoots/input.html b/tests/test-suite/test-suite-data/mixed-versions/tworoots/input.html deleted file mode 100644 index f9b4d6e..0000000 --- a/tests/test-suite/test-suite-data/mixed-versions/tworoots/input.html +++ /dev/null @@ -1 +0,0 @@ -

Frances Berriman

\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/mixed-versions/tworoots/output.json b/tests/test-suite/test-suite-data/mixed-versions/tworoots/output.json deleted file mode 100644 index 62f2748..0000000 --- a/tests/test-suite/test-suite-data/mixed-versions/tworoots/output.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "items": [{ - "type": ["h-card"], - "properties": { - "name": ["Frances Berriman"] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/mixed-versions/tworoots/test.json b/tests/test-suite/test-suite-data/mixed-versions/tworoots/test.json deleted file mode 100644 index c68e727..0000000 --- a/tests/test-suite/test-suite-data/mixed-versions/tworoots/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Roots from two versions", - "description": "h-card", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/rel/alternate/input.html b/tests/test-suite/test-suite-data/rel/alternate/input.html deleted file mode 100644 index c850745..0000000 --- a/tests/test-suite/test-suite-data/rel/alternate/input.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/rel/alternate/output.json b/tests/test-suite/test-suite-data/rel/alternate/output.json deleted file mode 100644 index 032924c..0000000 --- a/tests/test-suite/test-suite-data/rel/alternate/output.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "items": [], - "alternates": [{ - "url": "http://tantek.com/updates.atom", - "type": "application/atom+xml", - "rel": "updates" - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/rel/alternate/test.json b/tests/test-suite/test-suite-data/rel/alternate/test.json deleted file mode 100644 index d919418..0000000 --- a/tests/test-suite/test-suite-data/rel/alternate/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "A rel=alternate", - "description": "rel=alternate", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/rel/license/input.html b/tests/test-suite/test-suite-data/rel/license/input.html deleted file mode 100644 index 9092a34..0000000 --- a/tests/test-suite/test-suite-data/rel/license/input.html +++ /dev/null @@ -1 +0,0 @@ -cc by 2.5 \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/rel/license/output.json b/tests/test-suite/test-suite-data/rel/license/output.json deleted file mode 100644 index 869ca23..0000000 --- a/tests/test-suite/test-suite-data/rel/license/output.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "items": [], - "rels": { - "license": ["http://creativecommons.org/licenses/by/2.5/"] - } -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/rel/license/test.json b/tests/test-suite/test-suite-data/rel/license/test.json deleted file mode 100644 index c6757c2..0000000 --- a/tests/test-suite/test-suite-data/rel/license/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "A rel=license", - "description": "rel=license", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/rel/nofollow/input.html b/tests/test-suite/test-suite-data/rel/nofollow/input.html deleted file mode 100644 index f653674..0000000 --- a/tests/test-suite/test-suite-data/rel/nofollow/input.html +++ /dev/null @@ -1 +0,0 @@ -Copyrights \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/rel/nofollow/output.json b/tests/test-suite/test-suite-data/rel/nofollow/output.json deleted file mode 100644 index ebbfd65..0000000 --- a/tests/test-suite/test-suite-data/rel/nofollow/output.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "items": [], - "rels": { - "nofollow": ["http://microformats.org/wiki/microformats:copyrights"] - } -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/rel/nofollow/test.json b/tests/test-suite/test-suite-data/rel/nofollow/test.json deleted file mode 100644 index 5fcdc2f..0000000 --- a/tests/test-suite/test-suite-data/rel/nofollow/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "A rel=nofollow", - "description": "rel=nofollow", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/rel/suite.json b/tests/test-suite/test-suite-data/rel/suite.json deleted file mode 100644 index 7b085f8..0000000 --- a/tests/test-suite/test-suite-data/rel/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "rel=* and xfn parsing tests", - "description": "This page was design to test the parsing of rel=* and xfn. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/rel/xfn-all/input.html b/tests/test-suite/test-suite-data/rel/xfn-all/input.html deleted file mode 100644 index 39db275..0000000 --- a/tests/test-suite/test-suite-data/rel/xfn-all/input.html +++ /dev/null @@ -1,19 +0,0 @@ - \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/rel/xfn-all/output.json b/tests/test-suite/test-suite-data/rel/xfn-all/output.json deleted file mode 100644 index 35d039c..0000000 --- a/tests/test-suite/test-suite-data/rel/xfn-all/output.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "items": [], - "rels": { - "friend": ["http://example.com/profile/jane"], - "acquaintance": ["http://example.com/profile/jeo"], - "contact": ["http://example.com/profile/lily"], - "met": ["http://example.com/profile/oliver"], - "co-worker": ["http://example.com/profile/emily"], - "colleague": ["http://example.com/profile/jack"], - "neighbor": ["http://example.com/profile/isabella"], - "child": ["http://example.com/profile/harry"], - "parent": ["http://example.com/profile/sophia"], - "sibling": ["http://example.com/profile/charlie"], - "spouse": ["http://example.com/profile/olivia"], - "kin": ["http://example.com/profile/james"], - "muse": ["http://example.com/profile/ava"], - "crush": ["http://example.com/profile/joshua"], - "date": ["http://example.com/profile/chloe"], - "sweetheart": ["http://example.com/profile/alfie"], - "me": ["http://example.com/profile/isla"] - } -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/rel/xfn-all/test.json b/tests/test-suite/test-suite-data/rel/xfn-all/test.json deleted file mode 100644 index 3a040c9..0000000 --- a/tests/test-suite/test-suite-data/rel/xfn-all/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "A xfn all properties", - "description": "xfn", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/rel/xfn-elsewhere/input.html b/tests/test-suite/test-suite-data/rel/xfn-elsewhere/input.html deleted file mode 100644 index 1db6751..0000000 --- a/tests/test-suite/test-suite-data/rel/xfn-elsewhere/input.html +++ /dev/null @@ -1,10 +0,0 @@ - \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/rel/xfn-elsewhere/output.json b/tests/test-suite/test-suite-data/rel/xfn-elsewhere/output.json deleted file mode 100644 index 737a755..0000000 --- a/tests/test-suite/test-suite-data/rel/xfn-elsewhere/output.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "items": [], - "rels": { - "me": [ - "http://twitter.com/glennjones", - "http://delicious.com/glennjonesnet/", - "https://plus.google.com/u/0/105161464208920272734/about", - "http://lanyrd.com/people/glennjones/", - "http://github.com/glennjones", - "http://www.flickr.com/photos/glennjonesnet/", - "http://www.linkedin.com/in/glennjones", - "http://www.slideshare.net/glennjones/presentations" - ] - } -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/rel/xfn-elsewhere/test.json b/tests/test-suite/test-suite-data/rel/xfn-elsewhere/test.json deleted file mode 100644 index 1564ecc..0000000 --- a/tests/test-suite/test-suite-data/rel/xfn-elsewhere/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "A xfn elsewhere list", - "description": "xfn", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/url/suite.json b/tests/test-suite/test-suite-data/url/suite.json deleted file mode 100644 index 990b669..0000000 --- a/tests/test-suite/test-suite-data/url/suite.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "Expanding URLs in e-* properties parsing tests", - "description": "This page was design to test the expanding of relative URLs to absolute URLs in the HTML content of e-* propreties. These tests are part of the micorformats 2 test suite." -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/url/urlincontent/input.html b/tests/test-suite/test-suite-data/url/urlincontent/input.html deleted file mode 100644 index 9e1f516..0000000 --- a/tests/test-suite/test-suite-data/url/urlincontent/input.html +++ /dev/null @@ -1,13 +0,0 @@ -
-

Expanding URLs within HTML content

- -
\ No newline at end of file diff --git a/tests/test-suite/test-suite-data/url/urlincontent/output.json b/tests/test-suite/test-suite-data/url/urlincontent/output.json deleted file mode 100644 index 1e3438e..0000000 --- a/tests/test-suite/test-suite-data/url/urlincontent/output.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "items": [{ - "type": ["h-entry"], - "properties": { - "name": ["Expanding URLs within HTML content"], - "content": [{ - "value": "Should not change: http://www.w3.org/ Should not change: http://example.com/ File relative: test.html = http://example.com/test.html Directory relative: /test/test.html = http://example.com/test/test.html Relative to root: /test.html = http://example.com/test.html", - "html": "\n \n \n " - }] - } - }] -} \ No newline at end of file diff --git a/tests/test-suite/test-suite-data/url/urlincontent/test.json b/tests/test-suite/test-suite-data/url/urlincontent/test.json deleted file mode 100644 index b751276..0000000 --- a/tests/test-suite/test-suite-data/url/urlincontent/test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Expanding URLs in e-* properties", - "description": "h-entry", - "author": "Glenn Jones" -} \ No newline at end of file diff --git a/tests/test-suite/test-suite.php b/tests/test-suite/test-suite.php deleted file mode 100644 index 584cf55..0000000 --- a/tests/test-suite/test-suite.php +++ /dev/null @@ -1,252 +0,0 @@ -path = $path; - } # end method __construct() - - - /** - * This method runs the test suite - * @param array - * @access public - * @return bool - */ - public function start() - { - $directory = new \RecursiveDirectoryIterator($this->path, \RecursiveDirectoryIterator::SKIP_DOTS); - $iterator = new \RecursiveIteratorIterator($directory); - $this->suites = new \RegexIterator($iterator, '/^.+\.html$/i', \RecursiveRegexIterator::GET_MATCH); - - foreach ( $this->suites as $suite ) - { - $this->runTest(reset($suite)); - } - - echo sprintf('Total tests: %d', $this->tests_total), "\n"; - echo sprintf('Passed: %d', $this->tests_passed), "\n"; - echo sprintf('Failed: %d', $this->tests_failed), "\n"; - - return TRUE; - } # end method start() - - - /** - * This method handles running a test - * @param string $path: path to the test's HTML file - * @access public - * @return bool - */ - public function runTest($path) - { - $test_name = basename($path, '.html'); - echo sprintf('Running test: %s.', $test_name), "\n"; - - $dirname = dirname($path); - $json_file = $dirname . '/' . $test_name . '.json'; - - if ( !file_exists($json_file) ) - { - echo sprintf('Halting test: %s. No json file found.', $test_name), "\n"; - return FALSE; - } - - $input = file_get_contents($path); - $expected_output = json_decode(file_get_contents($json_file), TRUE); - - $parser = new Parser($input, '', TRUE); - $output = $parser->parse(TRUE); - - $test_differences = $this->array_diff_assoc_recursive($expected_output, $output); - - # if: test passed - if ( empty($test_differences) ) - { - $this->tests_passed++; - } - # else: test failed - else - { - echo sprintf('Test failed: %s', $test_name), "\n\n"; - echo sprintf('Parsed: %s', print_r($output, TRUE)), "\n"; - echo sprintf('Expected: %s', print_r($expected_output, TRUE)), "\n"; - echo sprintf('Differences: %s', print_r($test_differences, TRUE)), "\n"; - $this->tests_failed++; - } # end if - - return TRUE; - } # end method runTest() - - - /** - * This method recursively compares two arrays and returns the difference - * @see http://us2.php.net/manual/en/function.array-diff-assoc.php - * @param array $array1 - * @param array $array2 - * @access public - * @return array - */ - public function array_diff_assoc_recursive($array1, $array2, $canonicalize = true) - { - $difference = array(); - - # loop: each key in first array - foreach ( $array1 as $key => $value ) - { - - # if: nested array - if ( is_array($value) ) - { - - # if: mis-match - if ( !isset($array2[$key]) || !is_array($array2[$key]) ) - { - $difference[$key] = $value; - } - # else: recursive - else - { - $recursive_diff = $this->array_diff_assoc_recursive($value, $array2[$key]); - - if ( !empty($recursive_diff) ) - { - $difference[$key] = $recursive_diff; - } - - } - - } - # else if: numeric key, non-array value - else if ( is_numeric($key) && !is_array($value) ) - { - - # if: check for value anywhere in second array (JSON is orderless) - if ( !in_array($value, $array2) ) - { - $difference[$key] = $value; - } - - } - # else if: associative key - else if ( !array_key_exists($key, $array2) || $array2[$key] !== $value ) - { - $difference[$key] = $value; - } - - } # end loop - - return $difference; - } # end method array_diff_assoc_recursive() - - - /** - * DEPRECATED - * This method handles running a test suite - * @param string $path: path to the suite's JSON file - * @access public - * @return bool - */ - public function runSuite($path) - { - $suite = json_decode(file_get_contents($path)); - echo sprintf('Running %s.', $suite->name), "\n"; - - $iterator = new \DirectoryIterator(dirname($path)); - - # loop: each file in the test suite - foreach ( $iterator as $file ) - { - - # if: file is a sub-directory and not a dot-directory - if ( $file->isDir() && !$file->isDot() ) - { - $this->tests_total++; - - $path_of_test = $file->getPathname() . '/'; - - $test = json_decode(file_get_contents($path_of_test . 'test.json')); - $input = file_get_contents($path_of_test . 'input.html'); - $expected_output = json_decode(file_get_contents($path_of_test . 'output.json'), TRUE); - - $parser = new Parser($input, '', TRUE); - $output = $parser->parse(TRUE); - - # if: test passed - if ( $output['items'] === $expected_output['items'] ) - { - // echo '.'; # can output a dot for successful tests - $this->tests_passed++; - } - # else: test failed - else - { - echo sprintf('"%s" failed.', $test->name), "\n\n"; - echo sprintf('Parsed: %s', print_r($output, TRUE)), "\n"; - echo sprintf('Expected: %s', print_r($expected_output, TRUE)), "\n"; - $this->tests_failed++; - } # end if - - } # end if - - } # end loop - - return TRUE; - } # end method runSuite() - -} - -$path = ( empty($argv[1]) ) ? '' : $argv[1]; -$TestSuite = new TestSuite($path); -$TestSuite->start(); # run tests