File tree Expand file tree Collapse file tree 4 files changed +25
-0
lines changed Expand file tree Collapse file tree 4 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 22
22
- name : build
23
23
run : npm i && npm run build
24
24
25
+ - name : primitive test
26
+ run : npm run test
27
+
25
28
- name : install lhci
26
29
run : npm install @lhci/cli@latest
27
30
Original file line number Diff line number Diff line change
1
+ // Place your settings in this file to overwrite default and user settings.
2
+ {
3
+ "search.exclude" : {
4
+ "devtools-protocol/**" : true ,
5
+ "bower_components/**" : true
6
+ }
7
+ }
Original file line number Diff line number Diff line change 20
20
"scripts" : {
21
21
"build" : " rimraf devtools-protocol/ && node -r esm node_modules/.bin/eleventy && rollup -c rollup.config.js" ,
22
22
"prep" : " bash prep-tot-protocol-files.sh" ,
23
+ "test" : " bash test/primitive_tests.sh" ,
23
24
"serve" : " echo 'Open http://localhost:8696/devtools-protocol/ for built site'; statikk --port 8696 ."
24
25
}
25
26
}
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -euxo pipefail
3
+
4
+ local_script_path=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
5
+ build_dp_path=$local_script_path /../devtools-protocol
6
+
7
+ # v lame assertions
8
+ cat $build_dp_path /index.html | grep DOMSnapshot
9
+ cat $build_dp_path /tot/Page/index.html | grep --no-messages navigateToHistoryEntry
10
+
11
+ stat $build_dp_path /search_index/v8.json
12
+ stat $build_dp_path /search_index/tot.json
13
+
14
+ echo " assertions passed ✅"
You can’t perform that action at this time.
0 commit comments