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> |