Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.8
5 changes: 0 additions & 5 deletions tools/ci/ci_tools_integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ main() {
cd tools/wpt
tox
cd $WPT_ROOT

# WMAS test runner integration tests
cd tools/wave
tox
cd $WPT_ROOT
Comment on lines -17 to -20
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to stop running the WAVE tests in CI?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ci tests are incomplete and outdated. Therefore they serve no purpose in the ci.

}

main
2 changes: 1 addition & 1 deletion tools/wave/configuration_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def load_configuration_file(path):
return {}

configuration = None
with open(path) as configuration_file:
with open(path, "r") as configuration_file:
configuration_file_content = configuration_file.read()
configuration = json.loads(configuration_file_content)
return configuration
5 changes: 3 additions & 2 deletions tools/wave/data/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
PENDING = "pending"
UNKNOWN = "unknown"

WMAS = "wmas"
DPCTF = "dpctf"


class Session:
def __init__(
Expand All @@ -32,7 +35,6 @@ def __init__(
reference_tokens=None,
browser=None,
expiration_date=None,
type=None,
malfunctioning_tests=None
):
if token is None:
Expand Down Expand Up @@ -72,7 +74,6 @@ def __init__(
self.reference_tokens = reference_tokens
self.browser = browser
self.expiration_date = expiration_date
self.type = type
if malfunctioning_tests is None:
malfunctioning_tests = []
self.malfunctioning_tests = malfunctioning_tests
51 changes: 51 additions & 0 deletions tools/wave/ecmascript/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# WMAS2017 ECMA Integration
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


## Generating Tests

Clone the ECMAScript 5 tests into the working directory

```
$ git clone [email protected]:tc39/test262.git -b es5-tests
```

Working directory should look like this

```
generate-tests.js
test262
test-template.html
webplatform-adapter.js
```

Generate the tests by running

```
$ node generate-tests.js
```

Generated tests are placed in `ecmascript` directory. Copy this
directory into the top level directory of the Web Platform Tests
hierarchy in order for the Web Platform Test Runner to run them.

## Test generation parameters

```
$ node generate-tests.js < test262-repo-dir > < output-dir >
```

You can specify where the test262 repository is located and where the
generated tests should be put in by passing the paths to the
generator script as shown above.

## Excluded tests

The following tests are automatically excluded, because they are
causing the browser to freeze.

```
ch15/15.4/15.4.4/15.4.4.15/15.4.4.15-3-14.js
ch15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-14.js
ch15/15.4/15.4.4/15.4.4.20/15.4.4.20-3-14.js
ch15/15.4/15.4.4/15.4.4.21/15.4.4.21-3-14.js
ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-14.js
```
Loading
Loading