Bug 628612 followup: fix mochitest that assumes constructors are non-configurable, r=orange, a=blocker

This commit is contained in:
David Mandelin 2011-01-25 18:57:59 -08:00
Родитель d74a0eab16
Коммит 4dcb309477
1 изменённых файлов: 0 добавлений и 48 удалений

Просмотреть файл

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