File tree Expand file tree Collapse file tree
tests/automatic_tests/console Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5757 iframe_devtools . src = url ;
5858 iframe_devtools . height = '1000' ;
5959 iframe_devtools . width = '1000' ;
60-
60+
6161 function get_results ( ) {
6262 var console_logs = devtools . document . getElementsByClassName ( 'console-log-level' ) ;
6363
6464 for ( var i = 0 ; i < console_logs . length ; i ++ )
6565 results . push ( console_logs [ i ] . childNodes [ 0 ] . childNodes [ 0 ] . innerHTML ) ;
6666
67- win . showDevTools ( ) ; <!-- why? -->
68- var client = require ( '../../nw_test_app' ) . createClient ( {
69- argv : gui . App . argv ,
70- data : results
71- } ) ;
67+ var client = require ( '../../nw_test_app' ) . createClient ( {
68+ argv : gui . App . argv ,
69+ data : results
70+ } ) ;
7271 }
73-
72+
7473 function get_console_logs ( ) {
7574 var console_msgs = devtools . document . getElementsByClassName ( 'console' ) ;
7675
77- <!-- make sure it is complete -->
76+ <!-- make sure it is complete -->
7877 if ( console_msgs == undefined || console_msgs [ 0 ] == undefined || console_msgs [ 0 ] . click == undefined )
7978 setTimeout ( get_console_logs , 3000 ) ;
8079 else {
8180 console_msgs [ 0 ] . click ( ) ;
82- <!-- make sure it is complete -->
83- setTimeout ( get_results , 3000 ) ;
81+
82+ win . showDevTools ( ) ; <!-- why? -->
83+
84+ <!-- make sure it is complete -->
85+ setTimeout ( get_results , 3000 ) ;
8486 }
8587 }
8688
You can’t perform that action at this time.
0 commit comments