Permalink
Browse files

- assigning of REFADR moved to separate method

  • Loading branch information...
1 parent 08f671c commit c8432f68c4dcea39573440016f2145e9ea640e8c nickolay committed Jul 14, 2010
Showing with 8 additions and 31 deletions.
  1. +6 −1 lib/Data/Visitor.js
  2. +2 −2 t/010_basics.t.js
  3. +0 −28 t/index.html
View
@@ -52,10 +52,15 @@ Class('Data.Visitor', {
},
+ assignRefAdrTo : function (object) {
+ if (!object.__REFADR__) object.__REFADR__ = this.getRefAdrFor(object)
+ },
+
+
visitNotSeen : function (object) {
var className = this.getClassNameFor(object)
- if (!object.__REFADR__) object.__REFADR__ = this.getRefAdrFor(object)
+ this.assignRefAdrTo(object)
var REFADR = object.__REFADR__
View
@@ -1,7 +1,5 @@
StartTest(function(t) {
- t.plan(15)
-
var async0 = t.beginAsync()
use('Data.Visitor', function () {
@@ -92,6 +90,8 @@ StartTest(function(t) {
t.ok(valuesCounter == 9, "Correct number of values visited")
+ t.done()
+
t.endAsync(async0)
})
})
View
@@ -11,33 +11,5 @@
<body>
- <script type="text/javascript">
- var INC = []
- Joose.A.each([ '../lib', '/jsan' ], function (path) {
- INC.push(Test.Run.Harness.Browser.Multi.my.resolveUrl(path, true))
- })
-
-
- Test.Run.Harness.Browser.Multi.my.configure({
- title : 'Data.Visitor Test Suite',
-
- passThroughEx : true,
-
- preload : [
- '/jsan/Task/Joose/Core.js',
- "/jsan/JooseX/SimpleRequest.js",
- '/jsan/Task/JooseX/Namespace/Depended/Web.js',
- {
- text : "JooseX.Namespace.Depended.Manager.my.INC = " + Ext.encode(INC)
- },
- 'Data.Visitor'
- ]
- })
-
-
- Test.Run.Harness.Browser.Multi.my.start(
- '010_basics.t.js'
- )
- </script>
</body>
</html>

0 comments on commit c8432f6

Please sign in to comment.