File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 496
496
(@visr-commit! ))
497
497
(ocall fs :writeFile (js/path.join @current-folder @current-file) @input
498
498
(fn [err res]
499
+ (editor/make-reset-editors-cache cache)
499
500
(reset! file-changed false )
500
501
(swap! menu pop)
501
502
(if-let [cm @cm-ref]
1181
1182
(when (and @edit (not= o n))
1182
1183
(let [fc @file-changed]
1183
1184
(set! js/window.edit @edit)
1184
- (editor/make-reset-editors-cache cache)
1185
1185
(-> @edit (ocall :getDoc ) (ocall :setValue @input))
1186
1186
(reset! file-changed fc))))
1187
1187
codemirror-options #(conj (env/codemirror-options db) print-options)]
Original file line number Diff line number Diff line change 1691
1691
:set [:input ] use2 :check
1692
1692
:done #(done ))))))
1693
1693
1694
+
1694
1695
(deftest visr-in-mod-change
1695
1696
(testing " Ensure editor updates when its surrounding module changes"
1696
1697
(async
1771
1772
" World" ))
1772
1773
:done #(done ))))))
1773
1774
1775
+
1774
1776
(deftest runtime-error
1775
1777
(testing " Ensure printout when runtime error occurs"
1776
1778
(async
1807
1809
:set [:output ] res :check
1808
1810
:done #(done ))))))
1809
1811
1812
+
1810
1813
(deftest visrs-reset-on-file-change
1811
1814
(testing " Ensure visrs are removed when the file changes"
1812
1815
(async
1854
1857
:do #(is (= (count (.queryAllByLabelText view strings/VISUAL)) 0 ))
1855
1858
:done #(done ))))))
1856
1859
1860
+
1857
1861
(deftest test-main-functions
1858
1862
(testing " Ensure default called functions match run-functions"
1859
1863
(async
2068
2072
:set [:output ] output :check
2069
2073
:done #(done ))))))
2070
2074
2075
+
2071
2076
(defn -main [& args]
2072
2077
(run-tests-async 240000 ))
2073
2078
You can’t perform that action at this time.
0 commit comments