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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/resources/console-log-navigate.html

Issue 2318853002: [DevTools] Handle navigation in console.log (Closed)
Patch Set: addressed comments 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/LayoutTests/inspector-protocol/runtime/resources/console-log-navigate-on-load.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/runtime/resources/console-log-navigate-on-load.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698