X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=tests%2Fwebkit_inspector.js;h=82720c91df5b46308463828f650abd3fa71a1487;hb=d3015896da948fcfbb5847f525649859f26b8be3;hp=b11f5a8fa9b91b9ac9d9d9cc4c282d5e3d82a3c7;hpb=1892a6cd400ea38d7237ae894568d6ecc29e231c;p=app.Builder.js diff --git a/tests/webkit_inspector.js b/tests/webkit_inspector.js index b11f5a8fa..82720c91d 100644 --- a/tests/webkit_inspector.js +++ b/tests/webkit_inspector.js @@ -38,25 +38,25 @@ 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; }) - +// show and go.. w.show_all(); Gtk.main();