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

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

Issue 2330553002: Disallow resizing on OffscreenCanvas that has been transferred control from canvas (Closed)
Patch Set: test Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferControlToOffscreen.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferControlToOffscreen.html b/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferControlToOffscreen.html
index a093f1e871a9866a67e6cc49315c85d3fdce81ab..e881b63c0d1e52d926029c1165e6cee65f3e4559 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferControlToOffscreen.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferControlToOffscreen.html
@@ -42,11 +42,9 @@ test(function() {
var offscreenCanvas3 = canvas3.transferControlToOffscreen();
assert_equals(offscreenCanvas3.width, 10);
assert_equals(offscreenCanvas3.height, 10);
- offscreenCanvas3.width = 20;
- offscreenCanvas3.height = 20;
- assert_equals(offscreenCanvas3.width, 10);
- assert_equals(offscreenCanvas3.height, 10);
-}, "Test if resizing on offscreencanvas transferred from html canvas has no effect");
+ assert_throws("InvalidStateError", function() { offscreenCanvas3.width = 20; });
+ assert_throws("InvalidStateError", function() { offscreenCanvas3.height = 20; });
+}, "Test if resizing on offscreencanvas transferred from html canvas has thrown exceptions.");
</script>
</body>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698