diff core-javascript/tutorial.js @ 111:73859bf6d639 core-javascript

Add about-new, arguments and millers-device (and include from tutorial.js).
author jf3243
date Wed, 26 Oct 2011 16:32:34 +0100
parents f015a6838eb7
children df92f9f165c7
line wrap: on
line diff
--- a/core-javascript/tutorial.js	Wed Oct 26 16:12:24 2011 +0100
+++ b/core-javascript/tutorial.js	Wed Oct 26 16:32:34 2011 +0100
@@ -41,7 +41,8 @@
 // end return_this
 
 
-TEST('millers_device', function()
+// start millers-device
+TEST('millers-device', function()
 {
     var array = [];
     var obj = {};
@@ -58,8 +59,10 @@
     assert( object_toString.call(fn) === '[object Function]' );
 
 });
+// end millers-device
 
 
+// start return_arguments
 TEST('return_arguments', function()
 {
     var return_arguments = function(){
@@ -85,9 +88,11 @@
     assert( obj.toString.call( my_arguments_fixed ) === '[object Array]' );
 
 });
+// end return_arguments
 
 
-TEST('new', function()
+// start new-operator
+TEST('new-operator', function()
 {
     var this_in_Fn;
 
@@ -122,3 +127,4 @@
     assert( third_instance.i === 42 );
 
 });
+// end new-operator