Browse Source

test: move remaining files from old test/ directory (#6081)

pull/6085/head
Dmitry Gozman 5 days ago
committed by GitHub
parent
commit
5afe282fbb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
196 changed files with 109 additions and 137 deletions
  1. +1
    -1
      .github/workflows/tests.yml
  2. +1
    -4
      .gitignore
  3. +1
    -1
      src/utils/stackTrace.ts
  4. +0
    -13
      test/tsconfig.json
  5. +0
    -0
      tests/assets/background-color.html
  6. +0
    -0
      tests/assets/beforeunload.html
  7. +0
    -0
      tests/assets/button-overlay-oopif.html
  8. +0
    -0
      tests/assets/cached/one-style.css
  9. +0
    -0
      tests/assets/cached/one-style.html
  10. +0
    -0
      tests/assets/checkerboard.html
  11. +0
    -0
      tests/assets/chromium-linux.zip
  12. +0
    -0
      tests/assets/consolelog.html
  13. +0
    -0
      tests/assets/csp.html
  14. +0
    -0
      tests/assets/csscoverage/Dosis-Regular.ttf
  15. +0
    -0
      tests/assets/csscoverage/OFL.txt
  16. +0
    -0
      tests/assets/csscoverage/involved.html
  17. +0
    -0
      tests/assets/csscoverage/media.html
  18. +0
    -0
      tests/assets/csscoverage/multiple.html
  19. +0
    -0
      tests/assets/csscoverage/simple.html
  20. +0
    -0
      tests/assets/csscoverage/sourceurl.html
  21. +0
    -0
      tests/assets/csscoverage/stylesheet1.css
  22. +0
    -0
      tests/assets/csscoverage/stylesheet2.css
  23. +0
    -0
      tests/assets/csscoverage/unused.html
  24. +0
    -0
      tests/assets/deep-shadow.html
  25. +0
    -0
      tests/assets/detect-touch.html
  26. +0
    -0
      tests/assets/digits/0.png
  27. +0
    -0
      tests/assets/digits/1.png
  28. +0
    -0
      tests/assets/digits/2.png
  29. +0
    -0
      tests/assets/digits/3.png
  30. +0
    -0
      tests/assets/digits/4.png
  31. +0
    -0
      tests/assets/digits/5.png
  32. +0
    -0
      tests/assets/digits/6.png
  33. +0
    -0
      tests/assets/digits/7.png
  34. +0
    -0
      tests/assets/digits/8.png
  35. +0
    -0
      tests/assets/digits/9.png
  36. +0
    -0
      tests/assets/dom.html
  37. +0
    -0
      tests/assets/download-blob.html
  38. +0
    -0
      tests/assets/drag-n-drop.html
  39. +0
    -0
      tests/assets/dummy_bad_browser_executable.js
  40. +0
    -0
      tests/assets/dynamic-oopif.html
  41. +0
    -0
      tests/assets/empty.html
  42. +0
    -0
      tests/assets/error.html
  43. +0
    -0
      tests/assets/es6/.eslintrc
  44. +0
    -0
      tests/assets/es6/es6import.js
  45. +0
    -0
      tests/assets/es6/es6module.js
  46. +0
    -0
      tests/assets/es6/es6pathimport.js
  47. +0
    -0
      tests/assets/file-to-upload-2.txt
  48. +0
    -0
      tests/assets/file-to-upload.txt
  49. +0
    -0
      tests/assets/formatted-number.html
  50. +0
    -0
      tests/assets/frames/child-redirect.html
  51. +0
    -0
      tests/assets/frames/frame.html
  52. +0
    -0
      tests/assets/frames/frameset.html
  53. +0
    -0
      tests/assets/frames/lazy-frame.html
  54. +0
    -0
      tests/assets/frames/nested-frames.html
  55. +0
    -0
      tests/assets/frames/one-frame.html
  56. +0
    -0
      tests/assets/frames/redirect-my-parent.html
  57. +0
    -0
      tests/assets/frames/script.js
  58. +0
    -0
      tests/assets/frames/style.css
  59. +0
    -0
      tests/assets/frames/two-frames.html
  60. +0
    -0
      tests/assets/geolocation.html
  61. +0
    -0
      tests/assets/global-var.html
  62. +0
    -0
      tests/assets/grid-iframe-in-shadow.html
  63. +0
    -0
      tests/assets/grid.html
  64. +0
    -0
      tests/assets/har.html
  65. +0
    -0
      tests/assets/highdpi.html
  66. +0
    -0
      tests/assets/historyapi.html
  67. +0
    -0
      tests/assets/injectedfile.js
  68. +0
    -0
      tests/assets/injectedstyle.css
  69. +0
    -0
      tests/assets/input/animating-button.html
  70. +0
    -0
      tests/assets/input/button.html
  71. +0
    -0
      tests/assets/input/checkbox.html
  72. +0
    -0
      tests/assets/input/fileupload.html
  73. +0
    -0
      tests/assets/input/keyboard.html
  74. +0
    -0
      tests/assets/input/mouse-helper.js
  75. +0
    -0
      tests/assets/input/rotatedButton.html
  76. +0
    -0
      tests/assets/input/scrollable.html
  77. +0
    -0
      tests/assets/input/scrollable2.html
  78. +0
    -0
      tests/assets/input/select.html
  79. +0
    -0
      tests/assets/input/textarea.html
  80. +0
    -0
      tests/assets/input/touches.html
  81. +0
    -0
      tests/assets/jscoverage/eval.html
  82. +0
    -0
      tests/assets/jscoverage/involved.html
  83. +0
    -0
      tests/assets/jscoverage/multiple.html
  84. +0
    -0
      tests/assets/jscoverage/ranges.html
  85. +0
    -0
      tests/assets/jscoverage/script1.js
  86. +0
    -0
      tests/assets/jscoverage/script2.js
  87. +0
    -0
      tests/assets/jscoverage/simple.html
  88. +0
    -0
      tests/assets/jscoverage/sourceurl.html
  89. +0
    -0
      tests/assets/jscoverage/unused.html
  90. +0
    -0
      tests/assets/media-query-prefers-color-scheme.svg
  91. +0
    -0
      tests/assets/mobile.html
  92. +0
    -0
      tests/assets/modernizr.js
  93. +0
    -0
      tests/assets/movie.mp4
  94. +0
    -0
      tests/assets/movie.ogv
  95. +0
    -0
      tests/assets/networkidle-frame.html
  96. +0
    -0
      tests/assets/networkidle.html
  97. +0
    -0
      tests/assets/networkidle.js
  98. +0
    -0
      tests/assets/offscreenbuttons.html
  99. +0
    -0
      tests/assets/one-style.css
  100. +0
    -0
      tests/assets/one-style.html

+ 1
- 1
.github/workflows/tests.yml View File

@ -40,7 +40,7 @@ jobs:
# Wrap `npm run` in a subshell to redirect STDERR to file.
# Enable core dumps in the subshell.
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "ulimit -c unlimited && npm run test -- ${{ matrix.browser }} --reporter=dot,json"
- run: node test/checkCoverage.js ${{ matrix.browser }}
- run: node tests/config/checkCoverage.js ${{ matrix.browser }}
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
if: always() && github.repository == 'microsoft/playwright' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-'))
- uses: actions/upload-artifact@v1


+ 1
- 4
.gitignore View File

@ -1,6 +1,5 @@
/node_modules/
/test-results/
/test/coverage-report
/tests/coverage-report
.local-browsers/
/.dev_profile*
@ -9,13 +8,11 @@
*.pyc
.vscode
yarn.lock
/node6
/src/generated/*
lib/
jest-report.json
drivers/
.android-sdk/
.gradle/
nohup.out
api.json
.trace
.trace

+ 1
- 1
src/utils/stackTrace.ts View File

@ -58,7 +58,7 @@ export function captureStackTrace(): { stack: string, frames: StackFrame[] } {
// for tests.
if (isUnderTest() && fileName.includes(path.join('playwright', 'src')))
continue;
if (isUnderTest() && fileName.includes(path.join('playwright', 'test', 'coverage.js')))
if (isUnderTest() && fileName.includes(path.join('playwright', 'tests', 'config', 'coverage.js')))
continue;
frames.push({
file: fileName,


+ 0
- 13
test/tsconfig.json View File

@ -1,13 +0,0 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": false,
"noEmit": true,
"moduleResolution": "node",
"target": "ESNext",
"strictNullChecks": false,
"strictBindCallApply": true,
"allowSyntheticDefaultImports": true,
},
"include": ["**/*.spec.js", "**/*.ts"]
}

test/assets/background-color.html → tests/assets/background-color.html View File


test/assets/beforeunload.html → tests/assets/beforeunload.html View File


test/assets/button-overlay-oopif.html → tests/assets/button-overlay-oopif.html View File


test/assets/cached/one-style.css → tests/assets/cached/one-style.css View File


test/assets/cached/one-style.html → tests/assets/cached/one-style.html View File


test/assets/checkerboard.html → tests/assets/checkerboard.html View File


test/assets/chromium-linux.zip → tests/assets/chromium-linux.zip View File


test/assets/consolelog.html → tests/assets/consolelog.html View File


test/assets/csp.html → tests/assets/csp.html View File


test/assets/csscoverage/Dosis-Regular.ttf → tests/assets/csscoverage/Dosis-Regular.ttf View File


test/assets/csscoverage/OFL.txt → tests/assets/csscoverage/OFL.txt View File


test/assets/csscoverage/involved.html → tests/assets/csscoverage/involved.html View File


test/assets/csscoverage/media.html → tests/assets/csscoverage/media.html View File


test/assets/csscoverage/multiple.html → tests/assets/csscoverage/multiple.html View File


test/assets/csscoverage/simple.html → tests/assets/csscoverage/simple.html View File


test/assets/csscoverage/sourceurl.html → tests/assets/csscoverage/sourceurl.html View File


test/assets/csscoverage/stylesheet1.css → tests/assets/csscoverage/stylesheet1.css View File


test/assets/csscoverage/stylesheet2.css → tests/assets/csscoverage/stylesheet2.css View File


test/assets/csscoverage/unused.html → tests/assets/csscoverage/unused.html View File


test/assets/deep-shadow.html → tests/assets/deep-shadow.html View File


test/assets/detect-touch.html → tests/assets/detect-touch.html View File


test/assets/digits/0.png → tests/assets/digits/0.png View File


test/assets/digits/1.png → tests/assets/digits/1.png View File


test/assets/digits/2.png → tests/assets/digits/2.png View File


test/assets/digits/3.png → tests/assets/digits/3.png View File


test/assets/digits/4.png → tests/assets/digits/4.png View File


test/assets/digits/5.png → tests/assets/digits/5.png View File


test/assets/digits/6.png → tests/assets/digits/6.png View File


test/assets/digits/7.png → tests/assets/digits/7.png View File


test/assets/digits/8.png → tests/assets/digits/8.png View File


test/assets/digits/9.png → tests/assets/digits/9.png View File


test/assets/dom.html → tests/assets/dom.html View File


test/assets/download-blob.html → tests/assets/download-blob.html View File


test/assets/drag-n-drop.html → tests/assets/drag-n-drop.html View File


test/assets/dummy_bad_browser_executable.js → tests/assets/dummy_bad_browser_executable.js View File


test/assets/dynamic-oopif.html → tests/assets/dynamic-oopif.html View File


test/assets/empty.html → tests/assets/empty.html View File


test/assets/error.html → tests/assets/error.html View File


test/assets/es6/.eslintrc → tests/assets/es6/.eslintrc View File


test/assets/es6/es6import.js → tests/assets/es6/es6import.js View File


test/assets/es6/es6module.js → tests/assets/es6/es6module.js View File


test/assets/es6/es6pathimport.js → tests/assets/es6/es6pathimport.js View File


test/assets/file-to-upload-2.txt → tests/assets/file-to-upload-2.txt View File


test/assets/file-to-upload.txt → tests/assets/file-to-upload.txt View File


test/assets/formatted-number.html → tests/assets/formatted-number.html View File


test/assets/frames/child-redirect.html → tests/assets/frames/child-redirect.html View File


test/assets/frames/frame.html → tests/assets/frames/frame.html View File


test/assets/frames/frameset.html → tests/assets/frames/frameset.html View File


test/assets/frames/lazy-frame.html → tests/assets/frames/lazy-frame.html View File


test/assets/frames/nested-frames.html → tests/assets/frames/nested-frames.html View File


test/assets/frames/one-frame.html → tests/assets/frames/one-frame.html View File


test/assets/frames/redirect-my-parent.html → tests/assets/frames/redirect-my-parent.html View File


test/assets/frames/script.js → tests/assets/frames/script.js View File


test/assets/frames/style.css → tests/assets/frames/style.css View File


test/assets/frames/two-frames.html → tests/assets/frames/two-frames.html View File


test/assets/geolocation.html → tests/assets/geolocation.html View File


test/assets/global-var.html → tests/assets/global-var.html View File


test/assets/grid-iframe-in-shadow.html → tests/assets/grid-iframe-in-shadow.html View File


test/assets/grid.html → tests/assets/grid.html View File


test/assets/har.html → tests/assets/har.html View File


test/assets/highdpi.html → tests/assets/highdpi.html View File


test/assets/historyapi.html → tests/assets/historyapi.html View File


test/assets/injectedfile.js → tests/assets/injectedfile.js View File


test/assets/injectedstyle.css → tests/assets/injectedstyle.css View File


test/assets/input/animating-button.html → tests/assets/input/animating-button.html View File


test/assets/input/button.html → tests/assets/input/button.html View File


test/assets/input/checkbox.html → tests/assets/input/checkbox.html View File


test/assets/input/fileupload.html → tests/assets/input/fileupload.html View File


test/assets/input/keyboard.html → tests/assets/input/keyboard.html View File


test/assets/input/mouse-helper.js → tests/assets/input/mouse-helper.js View File


test/assets/input/rotatedButton.html → tests/assets/input/rotatedButton.html View File


test/assets/input/scrollable.html → tests/assets/input/scrollable.html View File


test/assets/input/scrollable2.html → tests/assets/input/scrollable2.html View File


test/assets/input/select.html → tests/assets/input/select.html View File


test/assets/input/textarea.html → tests/assets/input/textarea.html View File


test/assets/input/touches.html → tests/assets/input/touches.html View File


test/assets/jscoverage/eval.html → tests/assets/jscoverage/eval.html View File


test/assets/jscoverage/involved.html → tests/assets/jscoverage/involved.html View File


test/assets/jscoverage/multiple.html → tests/assets/jscoverage/multiple.html View File


test/assets/jscoverage/ranges.html → tests/assets/jscoverage/ranges.html View File


test/assets/jscoverage/script1.js → tests/assets/jscoverage/script1.js View File


test/assets/jscoverage/script2.js → tests/assets/jscoverage/script2.js View File


test/assets/jscoverage/simple.html → tests/assets/jscoverage/simple.html View File


test/assets/jscoverage/sourceurl.html → tests/assets/jscoverage/sourceurl.html View File


test/assets/jscoverage/unused.html → tests/assets/jscoverage/unused.html View File


test/assets/media-query-prefers-color-scheme.svg → tests/assets/media-query-prefers-color-scheme.svg View File


test/assets/mobile.html → tests/assets/mobile.html View File


test/assets/modernizr.js → tests/assets/modernizr.js View File


test/assets/movie.mp4 → tests/assets/movie.mp4 View File


test/assets/movie.ogv → tests/assets/movie.ogv View File


test/assets/networkidle-frame.html → tests/assets/networkidle-frame.html View File


test/assets/networkidle.html → tests/assets/networkidle.html View File


test/assets/networkidle.js → tests/assets/networkidle.js View File


test/assets/offscreenbuttons.html → tests/assets/offscreenbuttons.html View File


test/assets/one-style.css → tests/assets/one-style.css View File


test/assets/one-style.html → tests/assets/one-style.html View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save