File tree Expand file tree Collapse file tree 3 files changed +13
-321
lines changed Expand file tree Collapse file tree 3 files changed +13
-321
lines changed Original file line number Diff line number Diff line change @@ -71,22 +71,28 @@ fn main() -> Result<(), ()> {
71
71
let mut command = Command :: new ( & config. nodejs ) ;
72
72
73
73
command
74
- . arg ( config . rust_src . join ( "src/tools/rustdoc-gui/tester.js " ) )
74
+ . arg ( local_node_modules . join ( ".bin/browser-ui-test " ) )
75
75
. arg ( "--jobs" )
76
76
. arg ( & config. jobs )
77
- . arg ( "--doc-folder" )
77
+ . arg ( "--variable" )
78
+ . arg ( "DOC_PATH" )
78
79
. arg ( config. out_dir . join ( "doc" ) )
79
- . arg ( "--tests-folder" )
80
- . arg ( config. rust_src . join ( "tests/rustdoc-gui" ) ) ;
80
+ . arg ( "--allow-file-access-from-files" )
81
+ . arg ( "--display-format" )
82
+ . arg ( "compact" ) ;
81
83
82
84
if local_node_modules. exists ( ) {
83
- // Link the local node_modules if exists.
85
+ // Link the local node_modules if it exists.
84
86
// This is useful when we run rustdoc-gui-test from outside of the source root.
85
87
command. env ( "NODE_PATH" , local_node_modules) ;
86
88
}
87
89
88
- for file in & config. goml_files {
89
- command. arg ( "--file" ) . arg ( file) ;
90
+ if config. goml_files . is_empty ( ) {
91
+ command. arg ( "--test-folder" ) . arg ( config. rust_src . join ( "tests/rustdoc-gui" ) ) ;
92
+ } else {
93
+ for file in & config. goml_files {
94
+ command. arg ( "--test-file" ) . arg ( config. rust_src . join ( "tests/rustdoc-gui" ) . join ( file) ) ;
95
+ }
90
96
}
91
97
92
98
command. args ( & config. test_args ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -68,11 +68,6 @@ pub(super) fn lint(
68
68
run_eslint ( outdir, & files_to_check, librustdoc_path. join ( "html/static" ) ) ?;
69
69
70
70
run_eslint ( outdir, & [ tools_path. join ( "rustdoc-js/tester.js" ) ] , tools_path. join ( "rustdoc-js" ) ) ?;
71
- run_eslint (
72
- outdir,
73
- & [ tools_path. join ( "rustdoc-gui/tester.js" ) ] ,
74
- tools_path. join ( "rustdoc-gui" ) ,
75
- ) ?;
76
71
Ok ( ( ) )
77
72
}
78
73
You can’t perform that action at this time.
0 commit comments