mirror of
https://github.com/servo/servo
synced 2026-04-27 18:07:52 +02:00
Reorganize Servo's WPT Python scripts
This change moves all of Servo's WPT Python support scripts into one
directory as they were previously scattered throughout the directory
structure. This should allow more code reuse and make it easier to
understand how everything fits together.
The changes:
- `tests/wpt/update` → `python/wpt/importer`
- `etc/ci/upstream-wpt-changes/wptupstreamer` → `python/wpt/exporter`
- `etc/ci/upstream-wpt-changes/test.py` → `python/wpt/test.py`
- `etc/ci/upstream-wpt-changes/tests` → `python/wpt/tests`
- `tests/wpt/servowpt.py` →
- `python/wpt/update.py`
- `python/wpt/run.py`
- `tests/wpt/manifestupdate.py` → `python/wpt/manifestupdate.py`
This change also removes
- The ability to run the `update-wpt` and `test-wpt` commands without
using `mach`. These didn't work very well, because it was difficult
to get all of the wptrunner and mach dependencies installed outside
of the Python virtualenv. It's simpler if they are always run through
`mach`.
- The old WPT change upstreaming script that was no longer used.
This commit is contained in:
1
python/wpt/tests/servo-mock/README.md
Normal file
1
python/wpt/tests/servo-mock/README.md
Normal file
@@ -0,0 +1 @@
|
||||
This is a repository designed to superficially resemble the Servo repository.
|
||||
@@ -0,0 +1,3 @@
|
||||
<html>
|
||||
<h1>this is a mozilla-specific test</h1>
|
||||
</html>
|
||||
10
python/wpt/tests/servo-mock/tests/wpt/something.py
Normal file
10
python/wpt/tests/servo-mock/tests/wpt/something.py
Normal file
@@ -0,0 +1,10 @@
|
||||
# Copyright 2023 The Servo Project Developers. See the COPYRIGHT
|
||||
# file at the top-level directory of this distribution.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
# option. This file may not be copied, modified, or distributed
|
||||
# except according to those terms.
|
||||
|
||||
print('this is a python file')
|
||||
@@ -0,0 +1,3 @@
|
||||
<html>
|
||||
<h1>css test!</h1>
|
||||
</html>
|
||||
@@ -0,0 +1,3 @@
|
||||
<html>
|
||||
<h1>css test!</h1>
|
||||
</html>
|
||||
@@ -0,0 +1,16 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Fetch: handling Location header during redirection</title>
|
||||
<meta name="author" title="Canon Research France" href="https://www.crf.canon.fr">
|
||||
<meta name="help" href="https://fetch.spec.whatwg.org/#http-network-or-cache-fetch">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script src="../resources/utils.js"></script>
|
||||
<script src="redirect-location.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<html>
|
||||
<h1>this is a test file</h1>
|
||||
</html>
|
||||
Reference in New Issue
Block a user