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

Unified Diff: LayoutTests/fast/canvas/CanvasRendering2D-prototype-chain.html

Issue 177983005: Remove CanvasRenderingContext from the web exposed objects (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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 | Source/bindings/bindings.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/canvas/CanvasRendering2D-prototype-chain.html
diff --git a/LayoutTests/fast/canvas/CanvasRendering2D-prototype-chain.html b/LayoutTests/fast/canvas/CanvasRendering2D-prototype-chain.html
new file mode 100644
index 0000000000000000000000000000000000000000..b6c8e583a594d396bfe32eb6e7640337c205bafa
--- /dev/null
+++ b/LayoutTests/fast/canvas/CanvasRendering2D-prototype-chain.html
@@ -0,0 +1,16 @@
+<!doctype html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+
+test(function() {
+ assert_equals(CanvasRenderingContext2D.prototype.__proto__, Object.prototype);
+}, 'Constructor prototype');
+
+test(function() {
+ var canvasElement = document.createElement('canvas');
+ var context = canvasElement.getContext('2d');
+ assert_equals(context.__proto__, CanvasRenderingContext2D.prototype);
+}, 'Instance prototype chain');
+
+</script>
« no previous file with comments | « no previous file | Source/bindings/bindings.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698