|
1 <!-- |
|
2 DO NOT MODIFY THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING! |
|
3 |
|
4 This file is specifically designed to create a page larger than |
|
5 any screen fennec could run on (to allow panning in both axes). |
|
6 It is filled with 100x100 pixel boxes that are of unique colour, |
|
7 so that we can identify exactly what part of the page we are |
|
8 rendering at any given time. The colours are specifically chosen |
|
9 so that adjacent boxes have a fairly large variation in colour, |
|
10 and so that errors due to 565/888 conversion are minimised. This |
|
11 is done by dropping the bottom few bits on each color channel, |
|
12 so that conversion from 888->565 is pretty much lossless, and any |
|
13 variation only comes in from however the drivers do 565->888. |
|
14 |
|
15 A lot of the tests depend on this behaviour, so ensure that all |
|
16 the tests pass (on a variety of screen sizes) when making any |
|
17 changes to this file. |
|
18 --> |
|
19 <html style="margin: 0; padding: 0"> |
|
20 <head> |
|
21 <title>Browser Box test</title> |
|
22 <meta name="viewport" content="initial-scale=1.0"/> |
|
23 <meta charset="utf-8"> |
|
24 </head> |
|
25 <body style="margin: 0; padding: 0"> |
|
26 <script type="text/javascript"> |
|
27 for (var y = 0; y < 2000; y += 100) { |
|
28 document.write("<div style='width: 2000px; height: 100px; margin: 0; padding: 0; border: none'>\n"); |
|
29 for (var x = 0; x < 2000; x += 100) { |
|
30 var r = (Math.floor(x / 3) % 256); |
|
31 r = r & 0xF8; |
|
32 var g = (x + y) % 256; |
|
33 g = g & 0xFC; |
|
34 var b = (Math.floor(y / 3) % 256); |
|
35 b = b & 0xF8; |
|
36 document.write("<div style='float: left; width: 100px; height: 100px; margin: 0; padding: 0; border: none; background-color: rgb(" + r + "," + g + "," + b + ")'> </div>\n"); |
|
37 } |
|
38 document.write("</div>\n"); |
|
39 } |
|
40 </script> |
|
41 </body> |
|
42 </html> |