File tree 3 files changed +32
-4
lines changed
3 files changed +32
-4
lines changed Original file line number Diff line number Diff line change 54
54
WebKit/WebKitBuild/Release/bin/jsc builds/out-adv/core-advanced-test.js | tee test-out.txt
55
55
grep -qxF '0 failures, 0 errors.' test-out.txt
56
56
57
+ # Runtime Tests
58
+ runtime-windows-test :
59
+ name : Runtime Windows Tests
60
+ runs-on : windows-2019
61
+ steps :
62
+ - uses : actions/checkout@v2
63
+
64
+ -
uses :
DeLaGuardo/[email protected]
65
+ with :
66
+ cli : ' 1.10.1.763'
67
+
68
+ - name : Build tests
69
+ run : clojure -M:runtime.test.build
70
+ shell : powershell
71
+
72
+ - name : Run tests
73
+ run : |
74
+ node builds/out-adv/core-advanced-test.js | tee test-out.txt
75
+ findstr "0 failures, 0 errors." test-out.txt
76
+ shell : powershell
77
+
57
78
# Self-host Tests
58
79
self-host-test :
59
80
name : Self-host Tests
Original file line number Diff line number Diff line change 16
16
[com.google.javascript.jscomp.parsing Config$JsDocParsing]
17
17
[com.google.javascript.rhino
18
18
Node Token JSTypeExpression JSDocInfo$Visibility]
19
- [java.util.logging Level]))
19
+ [java.util.logging Level]
20
+ [java.net URL]))
20
21
21
22
(def ^:dynamic *ignore-var* false )
22
23
(def ^:dynamic *source-file* nil )
288
289
{} externs))))
289
290
290
291
(defn resource->source-file
291
- [resource]
292
+ [^URL resource]
292
293
(-> (SourceFile/builder )
293
- (.withPath (.toPath ( io/file ( . getPath resource)) ))
294
+ (.withPath (.getPath resource))
294
295
(.withContent (io/input-stream resource))
295
296
(.build )))
296
297
313
314
'[clojure.pprint :refer [pprint]]
314
315
'[cljs.js-deps :as js-deps])
315
316
317
+ (resource->source-file (io/resource " goog/dom/dom.js" ))
318
+
316
319
(pprint
317
320
(get-in (analyze-goog-file " goog/dom/dom.js" )
318
321
[:defs 'setTextContent]))
Original file line number Diff line number Diff line change 56
56
[cljs.extend-to-native-test]))
57
57
58
58
(set! *print-newline* false )
59
- (set-print-fn! js/print)
59
+
60
+ ; ; When testing Windows we default to Node.js
61
+ (if (exists? js/print)
62
+ (set-print-fn! js/print)
63
+ (enable-console-print! ))
60
64
61
65
(run-tests
62
66
'cljs.apply-test
You can’t perform that action at this time.
0 commit comments