Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of git://github.com/assaf/zombie into merge
Browse files Browse the repository at this point in the history
  • Loading branch information
boblail committed Jan 9, 2011
2 parents 9ac4fef + e38aa13 commit b8cc509
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 22 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Expand Up @@ -6,7 +6,9 @@ zombie.js-changelog(7) -- Changelog

Properly use the existance operator so empty strings are sent (José Valim).

Fixs to XPath evaluation and sorting by document order (José Valim).
Fix to XPath evaluation and sorting by document order (José Valim).

Update to HTML5 0.2.9.

231 Tests
3.4 sec to complete
Expand Down
23 changes: 9 additions & 14 deletions Cakefile
Expand Up @@ -165,9 +165,13 @@ publishDocs = (callback)->
log stdout, green
callback err
task "doc:publish", "Publish documentation to site", ->
generateDocs (err)->
onerror error
publishDocs onerror
documentPages (err)->
onerror err
documentSource (err)->
onerror err
generatePDF (err)->
onerror err
publishDocs onerror

task "publish", "Publish new version (Git, NPM, site)", ->
# Run tests, don't publish unless tests pass.
Expand Down Expand Up @@ -195,18 +199,9 @@ task "publish", "Publish new version (Git, NPM, site)", ->
log "Publishing to NPM ...", green
build (err)->
onerror err
# Beware: npm publish pushes everything it finds to the Web,
# don't run it on your working copy. Here we create a clean
# directory with only the files we *want* to publish.
files = package.files.slice(0)
files.push path for n,path of package.directories
exec "rm -rf clean && mkdir clean", (err)->
exec "npm publish", (err, stdout, stderr)->
log stdout, green
onerror err
exec "cp -R #{files.join(" ")} clean/", (err)->
onerror err
exec "npm publish clean", (err, stdout, stderr)->
log stdout, green
onerror err

# We can do this in parallel.
publishDocs onerror
Expand Down
20 changes: 17 additions & 3 deletions TODO.md
@@ -1,6 +1,23 @@
zombie.js-todo(7) -- Wishlist
=============================

* CSS support
* Add `style` attribute, parsed on-demand
* Add stylesheets to document
* Add feature to load/parse internal and external stylesheets
* Add browser option to control CSS loading (similar to `runScripts`)
* Make sure `DOMContentLoaded` event fires after all stylesheets
are loaded

* New script context
* The execution context for all scripts on the page is the `Window`
object itself
* Node's `runInContext` accepts a sandbox, then creates an actual V8
context by copying properties to/from, which breaks asynchronous
scripts (timer, XHR, etc) which run in the contex, not the sandbox

* Fix site links to not require `.html`.

* Navigation: Browser.open/close should work as a pair; look into supporting
window.open; fire unload event when navigating away from page.

Expand All @@ -10,6 +27,3 @@ zombie.js-todo(7) -- Wishlist
and timezone; allow changing browser timezone and default to system's.

* Prompts: handle window.confirm and window.alert.

* CSS support: DOM API support for stylesheets and the style attribute;
optionally loading so we don't impact performance.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -36,7 +36,7 @@
"dependencies": {
"base64": "1.0.1",
"cssom": "0.2.0",
"html5": "0.2.7",
"html5": "0.2.9",
"jsdom": "0.1.23",
"mime": "1.1.0"
},
Expand All @@ -60,4 +60,4 @@
"url": "http://github.com/assaf/zombie/raw/master/MIT-LICENSE"
}
]
}
}
4 changes: 2 additions & 2 deletions src/zombie/eventloop.coffee
Expand Up @@ -19,7 +19,7 @@ class EventLoop
if typeof fn == "function"
fn.apply this
else
eval fn
browser.evaluate fn
finally
delete timers[handle]
handle = ++lastHandle
Expand All @@ -38,7 +38,7 @@ class EventLoop
if typeof fn == "function"
fn.apply this
else
eval fn
browser.evaluate fn
finally
timer.when = browser.clock + delay
handle = ++lastHandle
Expand Down

0 comments on commit b8cc509

Please sign in to comment.