seed r499 - trunk/tests
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r499 - trunk/tests
- Date: Sat, 20 Dec 2008 03:04:17 +0000 (UTC)
Author: racarr
Date: Sat Dec 20 03:04:17 2008
New Revision: 499
URL: http://svn.gnome.org/viewvc/seed?rev=499&view=rev
Log:
Add a test of native closure exceptions.
Added:
trunk/tests/native-closure-exception.js (contents, props changed)
Modified:
trunk/tests/Makefile.am
Modified: trunk/tests/Makefile.am
==============================================================================
--- trunk/tests/Makefile.am (original)
+++ trunk/tests/Makefile.am Sat Dec 20 03:04:17 2008
@@ -1,6 +1,7 @@
EXTRA_DIST = \
argv.js \
closure-finalization.js \
+ native-closure-exception.js \
struct-enumerate.js \
gtype-class-init-exception.js \
struct-union-enumerate.js \
Added: trunk/tests/native-closure-exception.js
==============================================================================
--- (empty file)
+++ trunk/tests/native-closure-exception.js Sat Dec 20 03:04:17 2008
@@ -0,0 +1,17 @@
+#!/usr/bin/env seed
+// Returns: 0
+// STDIN:
+// STDOUT:
+// STDERR:\n\*\* \(seed:[0-9]+\): WARNING \*\*: Exception in closure marshal\. Line 11 in \.\/native-closure-exception\.js: ReferenceError Can't find variable: a
+Seed.import_namespace("Gtk")
+Gtk.init(null, null);
+
+w = new Gtk.Window();
+vbox = new Gtk.VBox();
+
+closure = function(widget){a.a.a};
+w.add(vbox);
+
+vbox.pack_start(new Gtk.Label());
+
+vbox.foreach(closure);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]