tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

regress-372309.js (1152B)


      1 // |reftest| skip-if(xulRuntime.shell)
      2 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 //-----------------------------------------------------------------------------
      8 var BUGNUMBER = 372309;
      9 var summary = 'Root new array objects';
     10 var actual = 'No Crash';
     11 var expect = 'No Crash';
     12 
     13 function test()
     14 {
     15  printBugNumber(BUGNUMBER);
     16  printStatus (summary);
     17 
     18  var width = 600;
     19  var height = 600;
     20 
     21  var img1canvas = document.createElement("canvas");
     22  var img2canvas = document.createElement("canvas");
     23 
     24  img1canvas.width = img2canvas.width = width;
     25  img1canvas.height = img2canvas.height = height;
     26  img1canvas.getContext("2d").getImageData(0, 0, width, height).data;
     27  img2canvas.getContext("2d").getImageData(0, 0, width, height).data;
     28 
     29  reportCompare(expect, actual, summary);
     30  gDelayTestDriverEnd = false;
     31  jsTestDriverEnd();
     32 }
     33 
     34 // delay test driver end
     35 gDelayTestDriverEnd = true;
     36 
     37 window.addEventListener("load", test, false);