]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix (and rename) the ts-set-state test
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 2 Sep 2013 13:59:13 +0000 (16:59 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 2 Sep 2013 13:59:13 +0000 (16:59 +0300)
tests/parser.el

index 1842360808ef5aef4099f4d6536550756a0ba195..0a076e12d3c1a0f966b41cddb8bf453231d6d29b 100644 (file)
@@ -230,7 +230,7 @@ the test."
   (should (eq js2-NAME (js2-current-token-type)))\r
   (should (equal "x" (js2-current-token-string))))\r
 \r
-(js2-deftest ts-set-state "(1+2)"\r
+(js2-deftest ts-seek "(1+2)"\r
   (js2-init-scanner)\r
   (should (eq js2-LP (js2-next-token)))\r
   (should (eq js2-NUMBER (js2-next-token)))\r
@@ -238,7 +238,7 @@ the test."
   (let ((state (make-js2-ts-state)))\r
     (should (eq js2-NUMBER (js2-next-token)))\r
     (should (eq js2-ADD (js2-next-token)))\r
-    (js2-ts-set-state state)\r
+    (js2-ts-seek state)\r
     (should (eq 1 js2-ti-lookahead))\r
     (should (eq js2-NUMBER (js2-next-token)))\r
     (should (eq 1 (js2-token-number\r