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,17 +6,35 @@ 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
"tests/QtQuick/qml/TextBasic.qml" ,
13
12
"tests/QtQuick/qml/RectangleColor.qml"
14
13
] ;
15
14
15
+ function isRenderTest ( file , callback ) {
16
+ var lineReader = require ( 'readline' ) . createInterface ( {
17
+ input : require ( 'fs' ) . createReadStream ( file )
18
+ } ) ;
19
+
20
+ lineReader . on ( 'line' , function ( line ) {
21
+ if ( line . indexOf ( "@Render" ) != - 1 ) {
22
+ callback ( ) ;
23
+ }
24
+ lineReader . close ( ) ;
25
+ } ) ;
26
+
27
+ }
28
+
16
29
paths . forEach ( function ( path ) {
17
30
glob ( path , function ( er , files ) {
18
31
files . forEach ( render ) ;
19
32
} ) ;
33
+ glob ( "tests/**/*.qml" , function ( er , files ) {
34
+ files . forEach ( function ( file ) {
35
+ isRenderTest ( file , function ( ) { render ( file ) ; } ) ;
36
+ } ) ;
37
+ } ) ;
20
38
} ) ;
21
39
22
40
function render ( path ) {
You can’t perform that action at this time.
0 commit comments