reinhard 2003/09/08 15:58:29
Modified: src/blocks/scratchpad/samples/intercepted-flow aspects1.js
aspects2.js basescript.js
Log:
- added calls of cocoon.sendPageAndWait() and woody.send()
- added interception definitions for stopExecution() and continueExecution()
Revision Changes Path
1.2 +9 -0
cocoon-2.1/src/blocks/scratchpad/samples/intercepted-flow/aspects1.js
Index: aspects1.js
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/blocks/scratchpad/samples/intercepted-flow/aspects1.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- aspects1.js 6 Sep 2003 13:45:49 -0000 1.1
+++ aspects1.js 8 Sep 2003 22:58:29 -0000 1.2
@@ -5,4 +5,13 @@
after(): {
cocoon.log.info( "after:call*" );
}
+}
+
+function testSendPageAndWait() {
+ continueExecution(): {
+ cocoon.log.info( "continueExecution:testSendPageAndWait" );
+ }
+ stopExecution(): {
+ cocoon.log.info( "stopExecution:testSendPageAndWait" );
+ }
}
1.2 +3 -1
cocoon-2.1/src/blocks/scratchpad/samples/intercepted-flow/aspects2.js
Index: aspects2.js
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/blocks/scratchpad/samples/intercepted-flow/aspects2.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- aspects2.js 6 Sep 2003 13:45:49 -0000 1.1
+++ aspects2.js 8 Sep 2003 22:58:29 -0000 1.2
@@ -2,5 +2,7 @@
before(): {
cocoon.log.info( "before:interception*" );
}
-
+ stopExecution(): {
+ cocoon.log.info( "stopExecution:interception*" );
+ }
}
1.2 +8 -1
cocoon-2.1/src/blocks/scratchpad/samples/intercepted-flow/basescript.js
Index: basescript.js
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/blocks/scratchpad/samples/intercepted-flow/basescript.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- basescript.js 6 Sep 2003 13:45:49 -0000 1.1
+++ basescript.js 8 Sep 2003 22:58:29 -0000 1.2
@@ -11,4 +11,11 @@
function callAnotherFunction() {
cocoon.log.error ( "callAnotherFunction() - baseScript" );
-}
\ No newline at end of file
+}
+
+function testSendPageAndWait() {
+ woody.send( "bla" );
+ cocoon.sendPageAndWait("xxx",{});
+ cocoon.sendPageAndWait("yyy",{});
+ cocoon.sendPageAndWait( "zzz", {} );
+}