[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master a0ccc5c 162/271: Improve and pass catch test.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master a0ccc5c 162/271: Improve and pass catch test. |
Date: |
Thu, 05 Feb 2015 18:30:48 +0000 |
branch: master
commit a0ccc5cab010acae17180819492739a477a6f2ce
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Improve and pass catch test.
---
test/context-coloring-test.el | 20 +++++++++-----------
test/fixtures/catch.js | 9 ++++++++-
2 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/test/context-coloring-test.el b/test/context-coloring-test.el
index 1218f22..1a4e24b 100644
--- a/test/context-coloring-test.el
+++ b/test/context-coloring-test.el
@@ -72,7 +72,7 @@ FIXTURE."
"./fixtures/function-scopes.js"
(js-mode)
(context-coloring-mode)
- (sleep-for .1) ; Wait for asynchronous coloring.
+ (sleep-for .25) ; Wait for asynchronous coloring.
(context-coloring-test-function-scopes)))
(ert-deftest context-coloring-test-js2-mode-function-scopes ()
@@ -102,15 +102,13 @@ FIXTURE."
"./fixtures/catch.js"
(js2-mode)
(context-coloring-mode)
- (context-coloring-test-region-level-p 1 8 0)
- (context-coloring-test-region-level-p 8 20 1)))
-
-(ert-deftest context-coloring-test-js2-mode-complexity ()
- (context-coloring-test-js2-with-fixture
- "../benchmark/fixtures/mkdirp-0.5.0.js"
- (js2-mode)
- (context-coloring-mode)
- ;; Don't error.
- ))
+ (context-coloring-test-region-level-p 20 27 1)
+ (context-coloring-test-region-level-p 27 51 2)
+ (context-coloring-test-region-level-p 51 52 1)
+ (context-coloring-test-region-level-p 52 73 2)
+ (context-coloring-test-region-level-p 73 101 3)
+ (context-coloring-test-region-level-p 101 102 1)
+ (context-coloring-test-region-level-p 102 117 3)
+ (context-coloring-test-region-level-p 117 123 2)))
(provide 'context-coloring-test)
diff --git a/test/fixtures/catch.js b/test/fixtures/catch.js
index 0ead890..a542ce9 100644
--- a/test/fixtures/catch.js
+++ b/test/fixtures/catch.js
@@ -1 +1,8 @@
-try {} catch (e) {}
+(function () {
+ try {} catch (e) {
+ var a = e;
+ try {} catch (e) {
+ var a = e;
+ }
+ }
+}());
- [elpa] master 5fcd757 146/271: Refactor to use more resilient dispatch strategy., (continued)
- [elpa] master 5fcd757 146/271: Refactor to use more resilient dispatch strategy., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 8982c75 127/271: Merge branch 'feature/tests' into develop, Jackson Ray Hamilton, 2015/02/05
- [elpa] master e06fbe9 158/271: Add comment support for js2-mode., Jackson Ray Hamilton, 2015/02/05
- [elpa] master a2b6a5a 112/271: Use defvar-local., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 6c8175e 153/271: Update compilation., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 4f57f0c 163/271: Improve global test., Jackson Ray Hamilton, 2015/02/05
- [elpa] master dc8e99c 130/271: Function name., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 2bb4d12 124/271: More cleanup., Jackson Ray Hamilton, 2015/02/05
- [elpa] master d301048 154/271: Update compilation again., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 1d9cf42 164/271: Refactor tests., Jackson Ray Hamilton, 2015/02/05
- [elpa] master a0ccc5c 162/271: Improve and pass catch test.,
Jackson Ray Hamilton <=
- [elpa] master c8fa33f 170/271: Improve async benchmarking., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 7954efc 110/271: Rename instances of depth to level., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 338716d 161/271: Refactor., Jackson Ray Hamilton, 2015/02/05
- [elpa] master fc81cf9 157/271: Don't use timers for js2-mode., Jackson Ray Hamilton, 2015/02/05
- [elpa] master b4c220a 159/271: Always remove hooks., Jackson Ray Hamilton, 2015/02/05
- [elpa] master e040ca0 181/271: Just use stable emacs., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 9e7ee77 155/271: Add catch test. Don't uncolorize., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 665a54a 167/271: Add more js-mode tests., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 43f2e3b 168/271: Increase reliability of async tests., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 28183e4 188/271: Readme., Jackson Ray Hamilton, 2015/02/05