From 3e657e4f4fcaad6505e684b402a2db569964be85 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 11 Jun 2010 11:11:26 +0800 Subject: [PATCH] tests/webkit_inspector.js --- tests/webkit_inspector.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/webkit_inspector.js b/tests/webkit_inspector.js index b11f5a8fa..352caf69d 100644 --- a/tests/webkit_inspector.js +++ b/tests/webkit_inspector.js @@ -38,20 +38,20 @@ v.add(s1); v.add(s2); w.add(v); - +// enable inspector.. +w1.get_settings().enable_developer_extras = true; // load google on show.. w1.signal.show.connect(function() { w1.load_uri("http://www.google.com"); - // enable the dev extras? - w1.get_settings().enable_developer_extras = true; }); + // load the inspector when loading has finished! w1.signal.load_finished.connect(function(wv) { w1.get_inspector().show(); - }); +// return the bottom window as the inspector.. w1.get_inspector().signal.inspect_web_view.connect(function() { return w2; }) -- 2.39.2