Posted By

dvdrtrgn on 09/09/08


Tagged

testing unit


Versions (?)

tester.html


 / Published in: HTML
 

URL: http://homepage.mac.com/dr_turgeon/tester.html

  1. <script language="JavaScript" type="text/javascript" src="sources/trite.js"></script>
  2. <link href="sources/trite.css" rel="stylesheet" type="text/css"/>
  3. <!--
  4. <script language="JavaScript" type="text/javascript" src="sources/Branch.js"></script>
  5. <script language="JavaScript" type="text/javascript" src="sources/listProps.js"></script>
  6. -->
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. // mod is a ref to some master obj or segment thereof
  21. function graftoModel(arr,mod,seg){
  22. if(typeof seg!='string')seg='x';
  23. if(typeof mod!='object')mod={left:{}};
  24. if(typeof arr!='object')arr=['a','c','b','d'];
  25. for(var s in arr){
  26. var str = arr[s];
  27. var ele = str+'!:'+s
  28. //*/document.getElementById(str);
  29. mod[str]={'ele':ele};
  30. mod[str]['idx']=s;
  31. } return mod;
  32. }
  33. graftoModel(0,0,0).left.a
  34.  
  35. (window.tm = function thisMany(n,s){ var r=''; for(var i=0;i<n;i++) r+=s; return r })(3,'i')=='iii';
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56. </head>
  57. <body class="trite">
  58. document.write(log);
  59. </script>
  60. </body>
  61. </html>

Report this snippet  

You need to login to post a comment.