mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 22:25:30 +00:00
Bug 628612 followup: fix mochitest that assumes constructors are non-configurable, r=orange, a=blocker
This commit is contained in:
parent
eb2e23f5ff
commit
201a9b3cc2
@ -19025,25 +19025,6 @@ isPixel(ctx, 50,25, 0,255,0,255, 0);
|
||||
todo(!_thrown_outer, 'should not throw exception');
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- [[[ test_2d.type.delete.html ]]] -->
|
||||
|
||||
<p>Canvas test: 2d.type.delete</p>
|
||||
<!-- Testing: window.CanvasRenderingContext2D is DontDelete -->
|
||||
<canvas id="c608" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
|
||||
<script>
|
||||
|
||||
function test_2d_type_delete() {
|
||||
|
||||
var canvas = document.getElementById('c608');
|
||||
var ctx = canvas.getContext('2d');
|
||||
|
||||
delete window.CanvasRenderingContext2D;
|
||||
ok(window.CanvasRenderingContext2D !== undefined, "window.CanvasRenderingContext2D !== undefined");
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -20757,25 +20738,6 @@ var data = canvas.toDataURL();
|
||||
todo(data === 'data:,', "data === 'data:,'");
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- [[[ test_type.delete.html ]]] -->
|
||||
|
||||
<p>Canvas test: type.delete</p>
|
||||
<!-- Testing: window.HTMLCanvasElement interface object is DontDelete -->
|
||||
<canvas id="c675" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
|
||||
<script>
|
||||
|
||||
function test_type_delete() {
|
||||
|
||||
var canvas = document.getElementById('c675');
|
||||
var ctx = canvas.getContext('2d');
|
||||
|
||||
delete window.HTMLCanvasElement;
|
||||
ok(window.HTMLCanvasElement, "window.HTMLCanvasElement");
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -23892,11 +23854,6 @@ function runTests() {
|
||||
} catch (e) {
|
||||
ok(false, "unexpected exception thrown in: test_2d_transformation_translate_nonfinite");
|
||||
}
|
||||
try {
|
||||
test_2d_type_delete();
|
||||
} catch (e) {
|
||||
ok(false, "unexpected exception thrown in: test_2d_type_delete");
|
||||
}
|
||||
try {
|
||||
test_2d_type_exists();
|
||||
} catch (e) {
|
||||
@ -24232,11 +24189,6 @@ function runTests() {
|
||||
} catch (e) {
|
||||
ok(false, "unexpected exception thrown in: test_toDataURL_zerosize");
|
||||
}
|
||||
try {
|
||||
test_type_delete();
|
||||
} catch (e) {
|
||||
ok(false, "unexpected exception thrown in: test_type_delete");
|
||||
}
|
||||
try {
|
||||
test_type_exists();
|
||||
} catch (e) {
|
||||
|
Loading…
Reference in New Issue
Block a user