seed r727 - in trunk: libseed tests/javascript
- From: hortont svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r727 - in trunk: libseed tests/javascript
- Date: Wed, 14 Jan 2009 07:13:28 +0000 (UTC)
Author: hortont
Date: Wed Jan 14 07:13:28 2009
New Revision: 727
URL: http://svn.gnome.org/viewvc/seed?rev=727&view=rev
Log:
Fix some error consistency problems in builtins, update test, add argument length test for spawn, etc.
Modified:
trunk/libseed/seed-builtins.c
trunk/tests/javascript/builtin-argument-length.js
Modified: trunk/libseed/seed-builtins.c
==============================================================================
--- trunk/libseed/seed-builtins.c (original)
+++ trunk/libseed/seed-builtins.c Wed Jan 14 07:13:28 2009
@@ -51,7 +51,7 @@
if (!buffer)
{
- gchar *mes = g_strdup_printf("File not found: %s.\n", import_file);
+ gchar *mes = g_strdup_printf("File not found: %s", import_file);
seed_make_exception(ctx, exception, "FileNotFound", mes);
g_free(import_file);
Modified: trunk/tests/javascript/builtin-argument-length.js
==============================================================================
--- trunk/tests/javascript/builtin-argument-length.js (original)
+++ trunk/tests/javascript/builtin-argument-length.js Wed Jan 14 07:13:28 2009
@@ -1,10 +1,21 @@
#!/usr/bin/env seed
// Returns: 0
// STDIN:
+// STDOUT:Seed\.spawn expected 1 argument\nFailed to execute child process "asihfieuhgieuhgw" \(No such file or directory\)\nSeed\.include expected 1 argument, got 0\nFile not found: 1\.000000\nFile not found: \nSeed\.include expected 1 argument, got 2\nSeed\.include expected 1 argument, got 2\nSeed\.print expected 1 argument, got 0\nSeed\.print expected 1 argument, got 2\nSeed\.print expected 1 argument, got 2\nSeed\.print expected 1 argument, got 3\nSeed\.introspect expected 1 argument, got 0\nSeed\.introspect expected 1 argument, got 2\nSeed\.check_syntax expected 1 argument, got 0\nSeed\.check_syntax expected 1 argument, got 2
+// STDERR:
+// Returns: 0
+// STDIN:
// STDOUT:Seed\.include expected 1 argument, got 0\nFile not found: 1\.000000\.\n\nFile not found: \.\n\nSeed\.include expected 1 argument, got 2\nSeed\.include expected 1 argument, got 2\nSeed\.print expected 1 argument, got 0\nSeed\.print expected 1 argument, got 2\nSeed\.print expected 1 argument, got 2\nSeed\.print expected 1 argument, got 3\nSeed\.introspect expected 1 argument, got 0\nSeed\.introspect expected 1 argument, got 2\nSeed\.check_syntax expected 1 argument, got 0\nSeed\.check_syntax expected 1 argument, got 2
// STDERR:
try{
+Seed.spawn();
+}catch(e){Seed.print(e.message)}
+try{
+Seed.spawn("asihfieuhgieuhgw");
+}catch(e){Seed.print(e.message)}
+
+try{
Seed.include();
}catch(e){Seed.print(e.message)}
try{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]