Bug 553102 - Remove unnecessary SpecialPowers wrap in test_canvas.html. r=me
authorBobby Holley <bobbyholley@gmail.com>
Fri, 17 Aug 2012 23:14:55 -0700
changeset 102708 2f210fb9f63cf58455b80341ab7b0b4f5ec47d7d
parent 102707 d11657f18f85b6114c4571404fdaba2a3d150962
child 102709 0f090cc7e9faf744a342c0746148df7e0792a567
push id23303
push userryanvm@gmail.com
push dateSat, 18 Aug 2012 11:22:19 +0000
treeherdermozilla-central@9c48df21d744 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs553102, 778420
milestone17.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 553102 - Remove unnecessary SpecialPowers wrap in test_canvas.html. r=me I put this in in bug 778420, but it looks like it wasn't necessary, since the tests seem to pass without it. It's on the critical path for this longish-running test, and it also breaks stuff with respect to __exposedProps__. Let's kill it.
content/canvas/test/test_canvas.html
--- a/content/canvas/test/test_canvas.html
+++ b/content/canvas/test/test_canvas.html
@@ -119,18 +119,17 @@ ok(ctx.canvas === canvas, "ctx.canvas ==
 <!-- [[[ test_2d.clearRect.basic.html ]]] -->
 
 <p>Canvas test: 2d.clearRect.basic</p>
 <canvas id="c3" width="100" height="50" style="background: #0f0"><p class="fallback">FAIL (fallback content)</p></canvas>
 <script>
 function isPixel(ctx, x,y, r,g,b,a, d) {
 	var pos = x + "," + y;
 	var colour = r + "," + g + "," + b + "," + a;
-    var pixel = SpecialPowers.unwrap(SpecialPowers.wrap(ctx)
-                                                  .getImageData(x, y, 1, 1));
+    var pixel = ctx.getImageData(x, y, 1, 1);
     var pr = pixel.data[0],
         pg = pixel.data[1],
         pb = pixel.data[2],
         pa = pixel.data[3];
     ok(r-d <= pr && pr <= r+d &&
        g-d <= pg && pg <= g+d &&
        b-d <= pb && pb <= b+d &&
        a-d <= pa && pa <= a+d,