rsdoiel/extractor-js — Issue #13: Note passing tests
Author: rsdoiel
Created: 2011-11-01 23:17:57+00:00
State: open

Need to get updated support for querySelector() and querySelectorAll() to pass the automated tests for v0.0.5 use cases. innerHTML is handled differently via jsDom and single element extraction appears to fail as well.

Starting [extractor-test.js] ... Tue Nov 01 2011 16:16:41 GMT-0700 (PDT)
Starting FetchPage() ...
Starting Scrape1() ...

node.js:205
throw e; // process.nextTick error, or 'error' event on first tick
^
AssertionError: Should not get an error. DOM processing error: AssertionError: h1 should be 'H1 of Test 1': {"title":{"text":"Test 1"},"h1":{}}
at /Users/rsdoiel/NoBackup/git-repos/extractor-js/extractor-test.js:100:13
at /Users/rsdoiel/NoBackup/git-repos/extractor-js/extractor.js:280:11
at Object.Scrape (/Users/rsdoiel/NoBackup/git-repos/extractor-js/extractor.js:287:3)
at Object.Scrape1 (/Users/rsdoiel/NoBackup/git-repos/extractor-js/extractor-test.js:99:12)
at Object. (/Users/rsdoiel/NoBackup/git-repos/extractor-js/extractor-test.js:158:28)
at Module._compile (module.js:416:26)
at Object..js (module.js:434:10)
at Module.load (module.js:335:31)
at Function._load (module.js:294:12)
at Array. (module.js:454:10)