mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Updated Testcases and Formatting
This commit is contained in:
parent
1de8ddd89c
commit
65e1f1fb3e
303 changed files with 7 additions and 852 deletions
|
@ -132,10 +132,7 @@ pub struct CanvasState {
|
|||
}
|
||||
|
||||
impl CanvasState {
|
||||
pub fn new(
|
||||
global: &GlobalScope,
|
||||
size: Size2D<u64>,
|
||||
) -> CanvasState {
|
||||
pub fn new(global: &GlobalScope, size: Size2D<u64>) -> CanvasState {
|
||||
debug!("Creating new canvas rendering context.");
|
||||
let (sender, receiver) =
|
||||
profiled_ipc::channel(global.time_profiler_chan().clone()).unwrap();
|
||||
|
@ -149,14 +146,13 @@ impl CanvasState {
|
|||
CanvasState {
|
||||
ipc_renderer: ipc_renderer,
|
||||
canvas_id: canvas_id,
|
||||
|
||||
}
|
||||
}
|
||||
/*pub fn new(
|
||||
global: &GlobalScope,
|
||||
size: Size2D<u32>,
|
||||
) -> CanvasState {
|
||||
|
||||
|
||||
/*let boxed = Box::new(CanvasState::new_inherited(
|
||||
global,
|
||||
size,
|
||||
|
@ -241,7 +237,10 @@ impl CanvasRenderingContext2D {
|
|||
saved_states: DomRefCell::new(Vec::new()),
|
||||
origin_clean: Cell::new(true),
|
||||
//canvas_id: canvas_id,
|
||||
canvas_state: DomRefCell::new(CanvasState::new(global,Size2D::new(size.width as u64, size.height as u64))),
|
||||
canvas_state: DomRefCell::new(CanvasState::new(
|
||||
global,
|
||||
Size2D::new(size.width as u64, size.height as u64),
|
||||
)),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ impl OffscreenCanvasRenderingContext2D {
|
|||
OffscreenCanvasRenderingContext2D {
|
||||
reflector_: Reflector::new(),
|
||||
canvas: canvas.map(Dom::from_ref),
|
||||
canvas_state: DomRefCell::new(CanvasState::new(_global,_size)),
|
||||
canvas_state: DomRefCell::new(CanvasState::new(_global, _size)),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.copy.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.copy.worker.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.destination-atop.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.destination-atop.worker.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.destination-in.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.destination-in.worker.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.destination-out.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.destination-out.worker.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.destination-over.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.destination-over.worker.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.lighter.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.lighter.worker.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.source-atop.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.source-atop.worker.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.source-in.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.source-in.worker.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.source-out.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.source-out.worker.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.source-over.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.source-over.worker.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.xor.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.canvas.xor.worker.html]
|
||||
expected: CRASH
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.globalAlpha.image.html]
|
||||
[OffscreenCanvas test: 2d.composite.globalAlpha.image]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.globalAlpha.image.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.globalAlpha.imagepattern.html]
|
||||
[OffscreenCanvas test: 2d.composite.globalAlpha.imagepattern]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.globalAlpha.imagepattern.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.copy.html]
|
||||
[OffscreenCanvas test: 2d.composite.image.copy]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.copy.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.destination-atop.html]
|
||||
[OffscreenCanvas test: 2d.composite.image.destination-atop]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.destination-atop.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.destination-in.html]
|
||||
[OffscreenCanvas test: 2d.composite.image.destination-in]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.destination-in.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.destination-out.html]
|
||||
[OffscreenCanvas test: 2d.composite.image.destination-out]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.destination-out.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.destination-over.html]
|
||||
[OffscreenCanvas test: 2d.composite.image.destination-over]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.destination-over.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.lighter.html]
|
||||
[OffscreenCanvas test: 2d.composite.image.lighter]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.lighter.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.source-atop.html]
|
||||
[OffscreenCanvas test: 2d.composite.image.source-atop]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.source-atop.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.source-in.html]
|
||||
[OffscreenCanvas test: 2d.composite.image.source-in]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.source-in.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.source-out.html]
|
||||
[OffscreenCanvas test: 2d.composite.image.source-out]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.source-out.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.source-over.html]
|
||||
[OffscreenCanvas test: 2d.composite.image.source-over]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.source-over.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.xor.html]
|
||||
[OffscreenCanvas test: 2d.composite.image.xor]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.image.xor.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.operation.clear.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.operation.clear.worker.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.operation.get.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.composite.operation.get.worker.html]
|
||||
expected: CRASH
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.image.copy.html]
|
||||
[drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.image.copy.worker.html]
|
||||
[drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.image.destination-atop.html]
|
||||
[drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.image.destination-atop.worker.html]
|
||||
[drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.image.destination-in.html]
|
||||
[drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.image.destination-in.worker.html]
|
||||
[drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.image.source-in.html]
|
||||
[drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.image.source-in.worker.html]
|
||||
[drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.image.source-out.html]
|
||||
[drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.image.source-out.worker.html]
|
||||
[drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.pattern.copy.html]
|
||||
[Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.pattern.copy.worker.html]
|
||||
[Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.pattern.destination-atop.html]
|
||||
[Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.pattern.destination-atop.worker.html]
|
||||
[Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.pattern.destination-in.html]
|
||||
[Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.pattern.destination-in.worker.html]
|
||||
[Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.pattern.source-in.html]
|
||||
[Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.pattern.source-in.worker.html]
|
||||
[Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.pattern.source-out.html]
|
||||
[Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.pattern.source-out.worker.html]
|
||||
[Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
[2d.drawImage.3arg.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.drawImage.3arg.worker.html]
|
||||
expected: CRASH
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.5arg.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.5arg]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.5arg.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.9arg.basic.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.9arg.basic]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.9arg.basic.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.9arg.destpos.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.9arg.destpos]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.9arg.destpos.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.9arg.destsize.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.9arg.destsize]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.9arg.destsize.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.9arg.sourcepos.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.9arg.sourcepos]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.9arg.sourcepos.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.9arg.sourcesize.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.9arg.sourcesize]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.9arg.sourcesize.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.alpha.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.alpha]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.alpha.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
[2d.drawImage.animated.poster.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.drawImage.animated.poster.worker.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.drawImage.broken.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.drawImage.broken.worker.html]
|
||||
expected: CRASH
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.composite.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.composite]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.composite.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
[2d.drawImage.floatsource.html]
|
||||
expected: CRASH
|
|
@ -1,2 +0,0 @@
|
|||
[2d.drawImage.floatsource.worker.html]
|
||||
expected: CRASH
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.negativedest.html]
|
||||
[Negative destination width/height represents the correct rectangle]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.negativedest.worker.html]
|
||||
[Negative destination width/height represents the correct rectangle]
|
||||
expected: FAIL
|
||||
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue