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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferControlToOffscreen.html

Issue 2493673002: Synchronize OffscreenCanvas content with the placeholder canvas (Closed)
Patch Set: fix obsolete test Created 4 years, 1 month 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
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/testharness.js"></script> 4 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script> 5 <script src="../../resources/testharnessreport.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <script> 8 <script>
9 function createCanvas(width, height) { 9 function createCanvas(width, height) {
10 var canvas = document.createElement("canvas"); 10 var canvas = document.createElement("canvas");
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 var offscreenCanvas4 = canvas4.transferControlToOffscreen(); 57 var offscreenCanvas4 = canvas4.transferControlToOffscreen();
58 assert_throws("InvalidStateError", function() { 58 assert_throws("InvalidStateError", function() {
59 canvas4.getContext("2d"); 59 canvas4.getContext("2d");
60 }, "canvas.getContext() is not allowed after transferring control to offscre en."); 60 }, "canvas.getContext() is not allowed after transferring control to offscre en.");
61 assert_throws("InvalidStateError", function() { 61 assert_throws("InvalidStateError", function() {
62 canvas4.height = 20; 62 canvas4.height = 20;
63 }, "canvas resizing height is not allowed after transferring control to offs creen."); 63 }, "canvas resizing height is not allowed after transferring control to offs creen.");
64 assert_throws("InvalidStateError", function() { 64 assert_throws("InvalidStateError", function() {
65 canvas4.width = 20; 65 canvas4.width = 20;
66 }, "canvas resizing width is not allowed after transferring control to offsc reen."); 66 }, "canvas resizing width is not allowed after transferring control to offsc reen.");
67 assert_throws("InvalidStateError", function() {
68 canvas4.toBlob(function() {});
69 }, "canvas.toBlob is not allowed after transferring control to offscreen.");
70 assert_throws("InvalidStateError", function() {
71 canvas4.toDataURL();
72 }, "canvas.toDataURL is not allowed after transferring control to offscreen. ");
73 }, "Test if modifying canvas after it transfers controls to offscreen throw exce ptions"); 67 }, "Test if modifying canvas after it transfers controls to offscreen throw exce ptions");
74 68
75 </script> 69 </script>
76 </body> 70 </body>
77 </html> 71 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698