Fix missing signal test
authorTim Horton <hortont424@gmail.com>
Thu, 18 Feb 2010 23:19:04 +0000 (18:19 -0500)
committerTim Horton <hortont424@gmail.com>
Thu, 18 Feb 2010 23:19:04 +0000 (18:19 -0500)
tests/javascript/signals/signal-invalid.js

index 9d4fe6b..006fb1e 100755 (executable)
@@ -6,4 +6,13 @@ Gtk.init(Seed.argv)
 
 w = new Gtk.Window()
 
-testsuite.assert(w.signal.notasignal == undefined)
+try
+{
+    a = w.signal.notasignal;
+    testsuite.unreachable();
+}
+catch(e)
+{
+    testsuite.assert(e.message == "Failed to connect to notasignal. Invalid signal name.");
+}
+