[seed] Fix documentation typo



commit 4f78441320ca04c11183273b009bc2a1804222b5
Author: Tim Horton <hortont424 gmail com>
Date:   Sat Nov 6 22:22:22 2010 -0400

    Fix documentation typo

 doc/reference/tmpl/seed-context.sgml  |   30 +++++++++++++++---------------
 tests/javascript/gtypes/testsuite.js  |   33 ++++++++++++++++++++++++++++++++-
 tests/javascript/signals/testsuite.js |   33 ++++++++++++++++++++++++++++++++-
 tests/javascript/structs/testsuite.js |   33 ++++++++++++++++++++++++++++++++-
 4 files changed, 111 insertions(+), 18 deletions(-)
---
diff --git a/doc/reference/tmpl/seed-context.sgml b/doc/reference/tmpl/seed-context.sgml
index c58a6f0..38435b8 100644
--- a/doc/reference/tmpl/seed-context.sgml
+++ b/doc/reference/tmpl/seed-context.sgml
@@ -6,7 +6,7 @@ Self-contained JavaScript execution environments
 
 <!-- ##### SECTION Long_Description ##### -->
 <para>
-A #SeedContext provides a complete "universe" for the execution of JavaScript. You can use seed_context_new() to create a sandboxed context that lacks the import system, so it can be used to execute somewhat untrusted JavaScript (as it has no way to access the rest of your system). You can also expose the default set of globals (including "print", "imports", and "Seed") to create more powerful but still self-contained environments within which to execute code.
+A #SeedContext provides a complete "universe" for the execution of JavaScript. You can use seed_context_create() to create a sandboxed context that lacks the import system, so it can be used to execute somewhat untrusted JavaScript (as it has no way to access the rest of your system). You can also expose the default set of globals (including "print", "imports", and "Seed") to create more powerful but still self-contained environments within which to execute code.
 </para>
 
 <example>
@@ -57,9 +57,9 @@ script = seed_make_script(ctx, "print(imports)", NULL, 0);
 
 </para>
 
- group: 
- global_class: 
- Returns: 
+ group:
+ global_class:
+ Returns:
 
 
 <!-- ##### FUNCTION seed_context_ref ##### -->
@@ -67,8 +67,8 @@ script = seed_make_script(ctx, "print(imports)", NULL, 0);
 
 </para>
 
- ctx: 
- Returns: 
+ ctx:
+ Returns:
 
 
 <!-- ##### FUNCTION seed_context_unref ##### -->
@@ -76,7 +76,7 @@ script = seed_make_script(ctx, "print(imports)", NULL, 0);
 
 </para>
 
- ctx: 
+ ctx:
 
 
 <!-- ##### FUNCTION seed_context_collect ##### -->
@@ -84,7 +84,7 @@ script = seed_make_script(ctx, "print(imports)", NULL, 0);
 
 </para>
 
- ctx: 
+ ctx:
 
 
 <!-- ##### FUNCTION seed_context_get_global_object ##### -->
@@ -92,8 +92,8 @@ script = seed_make_script(ctx, "print(imports)", NULL, 0);
 
 </para>
 
- ctx: 
- Returns: 
+ ctx:
+ Returns:
 
 
 <!-- ##### FUNCTION seed_prepare_global_context ##### -->
@@ -101,7 +101,7 @@ script = seed_make_script(ctx, "print(imports)", NULL, 0);
 
 </para>
 
- ctx: 
+ ctx:
 
 
 <!-- ##### FUNCTION seed_importer_add_global ##### -->
@@ -109,8 +109,8 @@ script = seed_make_script(ctx, "print(imports)", NULL, 0);
 
 </para>
 
- ctx: 
- name: 
+ ctx:
+ name:
 
 
 <!-- ##### FUNCTION seed_importer_set_search_path ##### -->
@@ -118,7 +118,7 @@ script = seed_make_script(ctx, "print(imports)", NULL, 0);
 
 </para>
 
- ctx: 
- search_path: 
+ ctx:
+ search_path:
 
 
diff --git a/tests/javascript/gtypes/testsuite.js b/tests/javascript/gtypes/testsuite.js
deleted file mode 120000
index 78d069d..0000000
--- a/tests/javascript/gtypes/testsuite.js
+++ /dev/null
@@ -1 +0,0 @@
-../testsuite.js
\ No newline at end of file
diff --git a/tests/javascript/gtypes/testsuite.js b/tests/javascript/gtypes/testsuite.js
new file mode 100755
index 0000000..a4d845e
--- /dev/null
+++ b/tests/javascript/gtypes/testsuite.js
@@ -0,0 +1,32 @@
+assertCount = 0
+
+function assert(a, err)
+{
+    assertCount++
+    
+    if(!a)
+    {
+        if(err)
+            print("Assertion " + assertCount + " failed: " + err + ".")
+        else
+            print("Assertion " + assertCount + " failed.")
+        
+        Seed.quit(assertCount)
+    }
+}
+
+function unreachable(err)
+{
+    if(err)
+        print("Unreachable code reached: " + err.toString() + ".")
+    else
+        print("Unreachable code reached.")
+    
+    Seed.quit(1)
+}
+
+function checkAsserts(n)
+{
+    if(assertCount != n)
+        assert(0, "Some assertions failed to run")
+}
diff --git a/tests/javascript/signals/testsuite.js b/tests/javascript/signals/testsuite.js
deleted file mode 120000
index 78d069d..0000000
--- a/tests/javascript/signals/testsuite.js
+++ /dev/null
@@ -1 +0,0 @@
-../testsuite.js
\ No newline at end of file
diff --git a/tests/javascript/signals/testsuite.js b/tests/javascript/signals/testsuite.js
new file mode 100755
index 0000000..a4d845e
--- /dev/null
+++ b/tests/javascript/signals/testsuite.js
@@ -0,0 +1,32 @@
+assertCount = 0
+
+function assert(a, err)
+{
+    assertCount++
+    
+    if(!a)
+    {
+        if(err)
+            print("Assertion " + assertCount + " failed: " + err + ".")
+        else
+            print("Assertion " + assertCount + " failed.")
+        
+        Seed.quit(assertCount)
+    }
+}
+
+function unreachable(err)
+{
+    if(err)
+        print("Unreachable code reached: " + err.toString() + ".")
+    else
+        print("Unreachable code reached.")
+    
+    Seed.quit(1)
+}
+
+function checkAsserts(n)
+{
+    if(assertCount != n)
+        assert(0, "Some assertions failed to run")
+}
diff --git a/tests/javascript/structs/testsuite.js b/tests/javascript/structs/testsuite.js
deleted file mode 120000
index 78d069d..0000000
--- a/tests/javascript/structs/testsuite.js
+++ /dev/null
@@ -1 +0,0 @@
-../testsuite.js
\ No newline at end of file
diff --git a/tests/javascript/structs/testsuite.js b/tests/javascript/structs/testsuite.js
new file mode 100755
index 0000000..a4d845e
--- /dev/null
+++ b/tests/javascript/structs/testsuite.js
@@ -0,0 +1,32 @@
+assertCount = 0
+
+function assert(a, err)
+{
+    assertCount++
+    
+    if(!a)
+    {
+        if(err)
+            print("Assertion " + assertCount + " failed: " + err + ".")
+        else
+            print("Assertion " + assertCount + " failed.")
+        
+        Seed.quit(assertCount)
+    }
+}
+
+function unreachable(err)
+{
+    if(err)
+        print("Unreachable code reached: " + err.toString() + ".")
+    else
+        print("Unreachable code reached.")
+    
+    Seed.quit(1)
+}
+
+function checkAsserts(n)
+{
+    if(assertCount != n)
+        assert(0, "Some assertions failed to run")
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]