-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
615c2bc
commit 9ba375c
Showing
388 changed files
with
50,843 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
environment: | ||
matrix: | ||
- nodejs_version: "8.16.0" | ||
FLAKINESS_DASHBOARD_NAME: Appveyor Chromium (Win + node8) | ||
FLAKINESS_DASHBOARD_PASSWORD: | ||
secure: g66jP+j6C+hkXLutBV9fdxB5fRJgcQQzy93SgQzXUmcCl/RjkJwnzyHvX0xfCVnv | ||
|
||
build: off | ||
|
||
install: | ||
- ps: $env:FLAKINESS_DASHBOARD_BUILD_URL="https://ci.appveyor.com/project/aslushnikov/playwright/builds/$env:APPVEYOR_BUILD_ID/job/$env:APPVEYOR_JOB_ID" | ||
- ps: Install-Product node $env:nodejs_version | ||
- npm install | ||
- if "%nodejs_version%" == "8.16.0" ( | ||
npm run lint && | ||
npm run coverage && | ||
npm run test-doclint && | ||
npm run test-types | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM node:10 | ||
|
||
RUN apt-get update && \ | ||
apt-get -y install xvfb gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 \ | ||
libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 \ | ||
libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 \ | ||
libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 \ | ||
libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Add user so we don't need --no-sandbox. | ||
RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \ | ||
&& mkdir -p /home/pptruser/Downloads \ | ||
&& chown -R pptruser:pptruser /home/pptruser | ||
|
||
# Run everything after as non-privileged user. | ||
USER pptruser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM node:12 | ||
|
||
RUN apt-get update && \ | ||
apt-get -y install xvfb gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 \ | ||
libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 \ | ||
libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 \ | ||
libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 \ | ||
libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Add user so we don't need --no-sandbox. | ||
RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \ | ||
&& mkdir -p /home/pptruser/Downloads \ | ||
&& chown -R pptruser:pptruser /home/pptruser | ||
|
||
# Run everything after as non-privileged user. | ||
USER pptruser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM node:8.11.3 | ||
|
||
RUN apt-get update && \ | ||
apt-get -y install xvfb gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 \ | ||
libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 \ | ||
libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 \ | ||
libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 \ | ||
libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Add user so we don't need --no-sandbox. | ||
RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \ | ||
&& mkdir -p /home/pptruser/Downloads \ | ||
&& chown -R pptruser:pptruser /home/pptruser | ||
|
||
# Run everything after as non-privileged user. | ||
USER pptruser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
env: | ||
DISPLAY: :99.0 | ||
FLAKINESS_DASHBOARD_PASSWORD: ENCRYPTED[b3e207db5d153b543f219d3c3b9123d8321834b783b9e45ac7d380e026ab3a56398bde51b521ac5859e7e45cb95d0992] | ||
FLAKINESS_DASHBOARD_NAME: Cirrus ${CIRRUS_TASK_NAME} | ||
FLAKINESS_DASHBOARD_BUILD_URL: https://cirrus-ci.com/task/${CIRRUS_TASK_ID} | ||
|
||
task: | ||
matrix: | ||
- name: Chromium (node8 + linux) | ||
container: | ||
dockerfile: .ci/node8/Dockerfile.linux | ||
- name: Chromium (node10 + linux) | ||
container: | ||
dockerfile: .ci/node10/Dockerfile.linux | ||
- name: Chromium (node12 + linux) | ||
container: | ||
dockerfile: .ci/node12/Dockerfile.linux | ||
xvfb_start_background_script: Xvfb :99 -ac -screen 0 1024x768x24 | ||
install_script: npm install --unsafe-perm | ||
lint_script: npm run lint | ||
coverage_script: npm run coverage | ||
test_doclint_script: npm run test-doclint | ||
test_types_script: npm run test-types | ||
|
||
task: | ||
matrix: | ||
- name: Firefox (node8 + linux) | ||
container: | ||
dockerfile: .ci/node8/Dockerfile.linux | ||
xvfb_start_background_script: Xvfb :99 -ac -screen 0 1024x768x24 | ||
install_script: npm install --unsafe-perm | ||
test_script: npm run funit | ||
|
||
task: | ||
osx_instance: | ||
image: high-sierra-base | ||
name: Chromium (node8 + macOS) | ||
env: | ||
HOMEBREW_NO_AUTO_UPDATE: 1 | ||
node_install_script: | ||
- brew install node@8 | ||
- brew link --force node@8 | ||
install_script: npm install --unsafe-perm | ||
lint_script: npm run lint | ||
coverage_script: npm run coverage | ||
test_doclint_script: npm run test-doclint | ||
test_types_script: npm run test-types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
test/assets/modernizr.js | ||
third_party/* | ||
utils/browser/playwright-web.js | ||
utils/doclint/check_public_api/test/ | ||
utils/testrunner/examples/ | ||
node6/* | ||
node6-test/* | ||
node6-testrunner/* | ||
lib/ | ||
*.js | ||
src/chromium/protocol.d.ts | ||
src/webkit/protocol.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint'], | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
ecmaVersion: 9, | ||
sourceType: 'module', | ||
}, | ||
|
||
/** | ||
* ESLint rules | ||
* | ||
* All available rules: http://eslint.org/docs/rules/ | ||
* | ||
* Rules take the following form: | ||
* "rule-name", [severity, { opts }] | ||
* Severity: 2 == error, 1 == warning, 0 == off. | ||
*/ | ||
"rules": { | ||
'@typescript-eslint/no-unused-vars': [2, {args: 'none'}], | ||
/** | ||
* Enforced rules | ||
*/ | ||
// syntax preferences | ||
"quotes": [2, "single", { | ||
"avoidEscape": true, | ||
"allowTemplateLiterals": true | ||
}], | ||
"semi": 2, | ||
"no-extra-semi": 2, | ||
"comma-style": [2, "last"], | ||
"wrap-iife": [2, "inside"], | ||
"spaced-comment": [2, "always", { | ||
"markers": ["*"] | ||
}], | ||
"eqeqeq": [2], | ||
"arrow-body-style": [2, "as-needed"], | ||
"accessor-pairs": [2, { | ||
"getWithoutSet": false, | ||
"setWithoutGet": false | ||
}], | ||
"brace-style": [2, "1tbs", {"allowSingleLine": true}], | ||
"curly": [2, "multi-or-nest", "consistent"], | ||
"new-parens": 2, | ||
"func-call-spacing": 2, | ||
"arrow-parens": [2, "as-needed"], | ||
"prefer-const": 2, | ||
"quote-props": [2, "consistent"], | ||
|
||
// anti-patterns | ||
"no-var": 2, | ||
"no-with": 2, | ||
"no-multi-str": 2, | ||
"no-caller": 2, | ||
"no-implied-eval": 2, | ||
"no-labels": 2, | ||
"no-new-object": 2, | ||
"no-octal-escape": 2, | ||
"no-self-compare": 2, | ||
"no-shadow-restricted-names": 2, | ||
"no-cond-assign": 2, | ||
"no-debugger": 2, | ||
"no-dupe-keys": 2, | ||
"no-duplicate-case": 2, | ||
"no-empty-character-class": 2, | ||
"no-unreachable": 2, | ||
"no-unsafe-negation": 2, | ||
"radix": 2, | ||
"valid-typeof": 2, | ||
"no-implicit-globals": [2], | ||
|
||
// es2015 features | ||
"require-yield": 2, | ||
"template-curly-spacing": [2, "never"], | ||
|
||
// spacing details | ||
"space-infix-ops": 2, | ||
"space-in-parens": [2, "never"], | ||
"space-before-function-paren": [2, "never"], | ||
"no-whitespace-before-property": 2, | ||
"keyword-spacing": [2, { | ||
"overrides": { | ||
"if": {"after": true}, | ||
"else": {"after": true}, | ||
"for": {"after": true}, | ||
"while": {"after": true}, | ||
"do": {"after": true}, | ||
"switch": {"after": true}, | ||
"return": {"after": true} | ||
} | ||
}], | ||
"arrow-spacing": [2, { | ||
"after": true, | ||
"before": true | ||
}], | ||
|
||
// file whitespace | ||
"no-multiple-empty-lines": [2, {"max": 2}], | ||
"no-mixed-spaces-and-tabs": 2, | ||
"no-trailing-spaces": 2, | ||
"linebreak-style": [ process.platform === "win32" ? 0 : 2, "unix" ], | ||
"indent": [2, 2, { "SwitchCase": 1, "CallExpression": {"arguments": 2}, "MemberExpression": 2 }], | ||
"key-spacing": [2, { | ||
"beforeColon": false | ||
}] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,20 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# next.js build output | ||
.next | ||
/node_modules/ | ||
/test/output-chromium | ||
/test/output-firefox | ||
/test/test-user-data-dir* | ||
/.local-chromium/ | ||
/.local-browser/ | ||
/.local-webkit/ | ||
/.dev_profile* | ||
.DS_Store | ||
*.swp | ||
*.pyc | ||
.vscode | ||
package-lock.json | ||
yarn.lock | ||
/node6 | ||
/src/chromium/protocol.d.ts | ||
/src/webkit/protocol.d.ts | ||
/utils/browser/playwright-web.js | ||
/index.d.ts | ||
lib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.appveyor.yml | ||
.gitattributes | ||
|
||
# no longer generated, but old checkouts might still have it | ||
node6 | ||
|
||
# exclude all tests | ||
test | ||
utils/node6-transform | ||
|
||
# exclude source files | ||
src | ||
|
||
# repeats from .gitignore | ||
node_modules | ||
.local-chromium | ||
.local-browser | ||
.dev_profile* | ||
.DS_Store | ||
*.swp | ||
*.pyc | ||
.vscode | ||
package-lock.json | ||
/node6/test | ||
/node6/utils | ||
/test | ||
/utils | ||
/docs | ||
yarn.lock | ||
|
||
# other | ||
/.ci | ||
/examples | ||
.appveyour.yml | ||
.cirrus.yml | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.js | ||
.travis.yml | ||
README.md | ||
tsconfig.json | ||
|
||
# exclude types, see https://github.com/GoogleChrome/puppeteer/issues/3878 | ||
/index.d.ts |
Oops, something went wrong.