Index: chrome/test/data/extensions/api_test/bindings/handler_function_type_checking.html |
diff --git a/chrome/test/data/extensions/api_test/bindings/handler_function_type_checking.html b/chrome/test/data/extensions/api_test/bindings/handler_function_type_checking.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4d21d9f50eb02dd96afb6ed51750f050a0f9f429 |
--- /dev/null |
+++ b/chrome/test/data/extensions/api_test/bindings/handler_function_type_checking.html |
@@ -0,0 +1,15 @@ |
+<!doctype html> |
+<body> |
+<span id="status">success</span> |
+<script> |
+iframe = document.body.appendChild(document.createElement("iframe")); |
+obj = iframe.contentWindow.Object; |
+app = iframe.contentWindow.chrome.app; |
+iframe.remove(); |
+obj.prototype.__defineGetter__("handler_function", function() { |
+ document.getElementById('status').textContent = 'FAILED'; |
+ return 0xBADDEAD; |
+}); |
+app.getDetails(); |
+</script> |
+</body> |