Bug 628612 followup: fix mochitest that assumes constructors are non-configurable, r=orange, a=blocker
authorDavid Mandelin <dmandelin@mozilla.com>
Tue, 25 Jan 2011 18:57:59 -0800
changeset 61440 82727ded88e6a38cdbe2b96ad148c7d5f079d16e
parent 61439 4003aacbc67503b2c6b7677f6e1edcbe8303f650
child 61441 df6e9f32a9463a95b036aa546c4b2dea2f755145
push idunknown
push userunknown
push dateunknown
reviewersorange, blocker
bugs628612
milestone2.0b10pre
Bug 628612 followup: fix mochitest that assumes constructors are non-configurable, r=orange, a=blocker
content/canvas/test/test_canvas.html
--- a/content/canvas/test/test_canvas.html
+++ b/content/canvas/test/test_canvas.html
@@ -19023,35 +19023,16 @@ isPixel(ctx, 50,25, 0,255,0,255, 0);
     _thrown_outer = true;
 }
 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>
-
 <!-- [[[ test_2d.type.exists.html ]]] -->
 
 <p>Canvas test: 2d.type.exists</p>
 <!-- Testing: The 2D context interface is a property of 'window' -->
 <canvas id="c609" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
 <script>
 
 function test_2d_type_exists() {
@@ -20755,35 +20736,16 @@ var ctx = canvas.getContext('2d');
 
 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>
-
 <!-- [[[ test_type.exists.html ]]] -->
 
 <p>Canvas test: type.exists</p>
 <!-- Testing: HTMLCanvasElement is a property of window -->
 <canvas id="c676" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
 <script>
 
 function test_type_exists() {
@@ -23888,21 +23850,16 @@ function runTests() {
   ok(false, "unexpected exception thrown in: test_2d_transformation_translate_basic");
  }
  try {
   test_2d_transformation_translate_nonfinite();
  } 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) {
   ok(false, "unexpected exception thrown in: test_2d_type_exists");
  }
  try {
   test_2d_type_extend();
  } catch (e) {
   ok(false, "unexpected exception thrown in: test_2d_type_extend");
@@ -24228,21 +24185,16 @@ function runTests() {
   ok(false, "unexpected exception thrown in: test_toDataURL_unrecognised");
  }
  try {
   test_toDataURL_zerosize();
  } 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) {
   ok(false, "unexpected exception thrown in: test_type_exists");
  }
  try {
   test_type_extend();
  } catch (e) {
   ok(false, "unexpected exception thrown in: test_type_extend");