File tree 1 file changed +19
-1
lines changed
1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,33 @@ var exec = require("child_process").execFileSync;
6
6
var glob = require ( "glob" ) ;
7
7
8
8
var devPath = __dirname . split ( "/" ) . pop ( ) ;
9
-
10
9
var paths = [
11
10
"tests/Render/Simple/*.qml"
12
11
] ;
13
12
13
+ function isRenderTest ( file , callback ) {
14
+ var lineReader = require ( 'readline' ) . createInterface ( {
15
+ input : require ( 'fs' ) . createReadStream ( file )
16
+ } ) ;
17
+
18
+ lineReader . on ( 'line' , function ( line ) {
19
+ if ( line . indexOf ( "@Render" ) != - 1 ) {
20
+ callback ( ) ;
21
+ }
22
+ lineReader . close ( ) ;
23
+ } ) ;
24
+
25
+ }
26
+
14
27
paths . forEach ( function ( path ) {
15
28
glob ( path , function ( er , files ) {
16
29
files . forEach ( render ) ;
17
30
} ) ;
31
+ glob ( "tests/**/*.qml" , function ( er , files ) {
32
+ files . forEach ( function ( file ) {
33
+ isRenderTest ( file , function ( ) { render ( file ) ; } ) ;
34
+ } ) ;
35
+ } ) ;
18
36
} ) ;
19
37
20
38
function render ( path ) {
You can’t perform that action at this time.
0 commit comments