Skip to content

Commit af1803e

Browse files
committed
Merge branch 'revert-cljs-3276'
2 parents 9c39d87 + a4637f8 commit af1803e

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
(ns cljs-3311-regress.core
2+
(:require [cljs.test :refer-macros [run-tests]]
3+
[cljs-3311-regress.tests]))
4+
5+
(run-tests 'cljs-3311-regress.tests)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
(ns cljs-3311-regress.tests
2+
(:require [cljs.test :refer [deftest is]]))
3+
4+
(deftest some-test
5+
(is (= 1 1)))

src/test/clojure/cljs/build_api_tests.clj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,3 +782,17 @@
782782
(ana/with-warning-handlers [(collecting-warning-handler ws)]
783783
(build/build (build/inputs (io/file inputs "cljs_3284/core.cljs")) opts cenv))
784784
(is (empty? @ws)))))
785+
786+
(deftest test-cljs-3311-regress
787+
(testing "Test that CLJS-3311 did not regress"
788+
(let [ws (atom [])
789+
out (.getPath (io/file (test/tmp-dir) "cljs-3311-regress-out"))
790+
{:keys [inputs opts]} {:inputs (str (io/file "src" "test" "cljs_build"))
791+
:opts {:main 'cljs-3311-regress.core
792+
:output-dir out
793+
:optimizations :none}}
794+
cenv (env/default-compiler-env opts)]
795+
(test/delete-out-files out)
796+
(ana/with-warning-handlers [(collecting-warning-handler ws)]
797+
(build/build (build/inputs (io/file inputs "cljs_3311_regress/core.cljs")) opts cenv))
798+
(is (empty? @ws)))))

0 commit comments

Comments
 (0)