Sfoglia il codice sorgente

functional test fix for travis

Evan You 12 anni fa
parent
commit
bd835ac276
2 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 2 1
      test/functional/specs/routing.js
  2. 2 1
      test/functional/specs/validation.js

+ 2 - 1
test/functional/specs/routing.js

@@ -1,7 +1,8 @@
 casper.test.begin('Routing', 10, function (test) {
     
     casper
-    .start('./fixtures/routing.html', function () {
+    .start('./fixtures/routing.html')
+    .then(function () {
         test.assertElementCount('div', 1)
         test.assertSelectorHasText('div', 'Hi!')
     })

+ 2 - 1
test/functional/specs/validation.js

@@ -1,7 +1,8 @@
 casper.test.begin('Validation', 4, function (test) {
     
     casper
-    .start('./fixtures/validation.html', function () {
+    .start('./fixtures/validation.html')
+    .then(function () {
         test.assertElementCount('.valid', 0)
         this.sendKeys('input', '@hello.com')
     })