Updated Testcases and Formatting

This commit is contained in:
Maharsh 2019-05-11 21:58:15 -04:00
parent 1de8ddd89c
commit 65e1f1fb3e
303 changed files with 7 additions and 852 deletions

View file

@ -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),
)),
}
}

View file

@ -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)),
}
}

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.copy.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.copy.worker.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.destination-atop.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.destination-atop.worker.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.destination-in.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.destination-in.worker.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.destination-out.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.destination-out.worker.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.destination-over.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.destination-over.worker.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.lighter.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.lighter.worker.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.source-atop.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.source-atop.worker.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.source-in.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.source-in.worker.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.source-out.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.source-out.worker.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.source-over.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.source-over.worker.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.xor.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.canvas.xor.worker.html]
expected: CRASH

View file

@ -1,4 +0,0 @@
[2d.composite.globalAlpha.image.html]
[OffscreenCanvas test: 2d.composite.globalAlpha.image]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.globalAlpha.image.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.globalAlpha.imagepattern.html]
[OffscreenCanvas test: 2d.composite.globalAlpha.imagepattern]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.globalAlpha.imagepattern.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.copy.html]
[OffscreenCanvas test: 2d.composite.image.copy]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.copy.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.destination-atop.html]
[OffscreenCanvas test: 2d.composite.image.destination-atop]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.destination-atop.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.destination-in.html]
[OffscreenCanvas test: 2d.composite.image.destination-in]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.destination-in.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.destination-out.html]
[OffscreenCanvas test: 2d.composite.image.destination-out]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.destination-out.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.destination-over.html]
[OffscreenCanvas test: 2d.composite.image.destination-over]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.destination-over.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.lighter.html]
[OffscreenCanvas test: 2d.composite.image.lighter]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.lighter.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.source-atop.html]
[OffscreenCanvas test: 2d.composite.image.source-atop]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.source-atop.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.source-in.html]
[OffscreenCanvas test: 2d.composite.image.source-in]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.source-in.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.source-out.html]
[OffscreenCanvas test: 2d.composite.image.source-out]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.source-out.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.source-over.html]
[OffscreenCanvas test: 2d.composite.image.source-over]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.source-over.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.xor.html]
[OffscreenCanvas test: 2d.composite.image.xor]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.image.xor.worker.html]
[2d]
expected: FAIL

View file

@ -1,2 +0,0 @@
[2d.composite.operation.clear.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.operation.clear.worker.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.operation.get.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.composite.operation.get.worker.html]
expected: CRASH

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -1,2 +0,0 @@
[2d.drawImage.3arg.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.drawImage.3arg.worker.html]
expected: CRASH

View file

@ -1,4 +0,0 @@
[2d.drawImage.5arg.html]
[OffscreenCanvas test: 2d.drawImage.5arg]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.5arg.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.9arg.basic.html]
[OffscreenCanvas test: 2d.drawImage.9arg.basic]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.9arg.basic.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.9arg.destpos.html]
[OffscreenCanvas test: 2d.drawImage.9arg.destpos]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.9arg.destpos.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.9arg.destsize.html]
[OffscreenCanvas test: 2d.drawImage.9arg.destsize]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.9arg.destsize.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.9arg.sourcepos.html]
[OffscreenCanvas test: 2d.drawImage.9arg.sourcepos]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.9arg.sourcepos.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.9arg.sourcesize.html]
[OffscreenCanvas test: 2d.drawImage.9arg.sourcesize]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.9arg.sourcesize.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.alpha.html]
[OffscreenCanvas test: 2d.drawImage.alpha]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.alpha.worker.html]
[2d]
expected: FAIL

View file

@ -1,2 +0,0 @@
[2d.drawImage.animated.poster.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.drawImage.animated.poster.worker.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.drawImage.broken.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.drawImage.broken.worker.html]
expected: CRASH

View file

@ -1,4 +0,0 @@
[2d.drawImage.composite.html]
[OffscreenCanvas test: 2d.drawImage.composite]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.composite.worker.html]
[2d]
expected: FAIL

View file

@ -1,2 +0,0 @@
[2d.drawImage.floatsource.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[2d.drawImage.floatsource.worker.html]
expected: CRASH

View file

@ -1,4 +0,0 @@
[2d.drawImage.negativedest.html]
[Negative destination width/height represents the correct rectangle]
expected: FAIL

View file

@ -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