removed obsolete file
Showing
1 changed file
with
0 additions
and
20 deletions
tests/run.coffee
deleted
100644 → 0
1 | # A small subset of the run.js written in coffeescript | ||
2 | |||
3 | do (casper) -> | ||
4 | steps = 0 | ||
5 | |||
6 | casper.options.onStepComplete = -> steps++ | ||
7 | |||
8 | casper.start "tests/site/index.html", -> | ||
9 | @test.assertTitle "CasperJS test index", "Casper.start() casper can start itself an open an url" | ||
10 | @test.assertEquals @fetchText("ul li"), "onetwothree", "Casper.fetchText() can retrieves text contents" | ||
11 | @click "a[href=\"test.html\"]" | ||
12 | |||
13 | casper.then -> | ||
14 | @test.assertTitle "CasperJS test target", "Casper.click() casper can click on a text link" | ||
15 | @click "a[href=\"form.html\"]" | ||
16 | |||
17 | casper.run -> | ||
18 | @test.assertEquals steps, 3, "Casper.options.onStepComplete() is called on step complete" | ||
19 | @options.onStepComplete = null | ||
20 | @test.done() | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or sign in to post a comment