Index: third_party/WebKit/LayoutTests/inspector-protocol/runtime/resources/console-log-navigate.html |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/resources/console-log-navigate.html b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/resources/console-log-navigate.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..56cdeded31be3bbd9e3afde0d25cfed538454652 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/resources/console-log-navigate.html |
@@ -0,0 +1,29 @@ |
+<script> |
+function navigate() |
+{ |
+ anchor = document.createElement("a"); |
+ anchor.href = "about:blank"; |
+ anchor.click(); |
+} |
+ |
+function logArray() |
+{ |
+ array = []; |
+ array.__defineGetter__(0, () => navigate()); |
+ console.log(array); |
+} |
+ |
+function logDate() |
+{ |
+ var a = new Date(); |
+ a.toString = () => navigate(); |
+ console.log(a); |
+} |
+ |
+function logDateWithArg() |
+{ |
+ var a = new Date(); |
+ a.toString = () => navigate(); |
+ console.log(42, a); |
+} |
+</script> |