Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-skia-excessive-size.html

Issue 2944020: 2010-07-09 W. James MacLean <wjmaclean@chromium.org>... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/375/src/
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-skia-excessive-size-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <head>
2 <script>
3 function print(message)
4 {
5 var paragraph = document.createElement("li");
6 paragraph.appendChild(document.createTextNode(message));
7 document.getElementById("console").appendChild(paragraph);
8 }
9 function test()
10 {
11 if (window.layoutTestController)
12 layoutTestController.dumpAsText();
13
14 var canvas = document.getElementById("bigCanvas");
15 var width = canvas.width;
16 // We need to perform a context fetch to force allocation of
17 // canvas resources.
18 if (canvas.getContext)
19 {
20 var ctx = canvas.getContext("2d");
21 if (ctx == null)
22 {
23 print("Canvas 2d context = null!");
24 }
25 }
26
27 print("Survived canvas creation attempt. Width = " + width);
28 }
29 </script>
30 </head>
31 <body onload="test();">
32 <canvas id="bigCanvas" width="134217728" height="1"></canvas>
33 <p>This test checks to see if the browser survives the attempted creation
34 of an excessively large canvas.</p>
35 <hr>
36 <p><ol id=console></ol></p>
37 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-skia-excessive-size-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698