mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Auto merge of #20718 - paulrouget:res2, r=emilio
Automatically provide a resource reader for tests Fix #20710 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [ ] `./mach build-geckolib` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #20710 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20718) <!-- Reviewable:end -->
This commit is contained in:
commit
67370b37d3
20 changed files with 72 additions and 109 deletions
|
@ -13,7 +13,6 @@ doctest = false
|
|||
byteorder = "1.0"
|
||||
app_units = "0.6"
|
||||
cssparser = "0.23.0"
|
||||
embedder_traits = {path = "../../../components/embedder_traits"}
|
||||
euclid = "0.17"
|
||||
html5ever = "0.22"
|
||||
parking_lot = "0.5"
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
extern crate app_units;
|
||||
extern crate cssparser;
|
||||
extern crate embedder_traits;
|
||||
extern crate euclid;
|
||||
#[macro_use] extern crate html5ever;
|
||||
extern crate parking_lot;
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use cssparser::{self, SourceLocation};
|
||||
use embedder_traits::resources::register_resources_for_tests;
|
||||
use html5ever::{Namespace as NsAtom};
|
||||
use media_queries::CSSErrorReporterTest;
|
||||
use parking_lot::RwLock;
|
||||
|
@ -322,7 +321,6 @@ impl ParseErrorReporter for TestingErrorReporter {
|
|||
|
||||
#[test]
|
||||
fn test_report_error_stylesheet() {
|
||||
register_resources_for_tests();
|
||||
PREFS.set("layout.viewport.enabled", PrefValue::Boolean(true));
|
||||
let css = r"
|
||||
div {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue