Sha256: 67ffbef05b0142b2be9bfd9d194acf4bccd0c0203a20872ff139bd12ce86df8e

Contents?: true

Size: 1.6 KB

Versions: 11

Compression:

Stored size: 1.6 KB

Contents

<html>
<head>
<title>Test Invocation</title>
<script type="text/javascript" src="../../../../dojo/dojo.js" djConfig="isDebug: true, parseOnLoad:true "></script>
<script type="text/javascript">
dojo.provide("dojox.wire.ml.tests.markup.Invocation");

dojo.require("dojo.parser");
dojo.require("doh.runner");
dojo.require("dojox.wire.ml.Invocation");

dojox.wire.ml.tests.markup.Invocation = {
	invoke: function(p1, p2){return p1 + p2;},
	invokeError: function(p){throw new Error(p);},
	parameters: {a: "A", b: "B", c: "C"}
};

dojo.addOnLoad(function(){
	doh.register("dojox.wire.ml.tests.markup.Invocation", [

		function test_Invocation_method(t){
			dojo.publish("invokeMethod");
			t.assertEqual("AB", dojox.wire.ml.tests.markup.Invocation.result);
		},

		function test_Invocation_topic(t){
			dojo.publish("invokeTopic");
			t.assertEqual("C", dojox.wire.ml.tests.markup.Invocation.error);
		}

	]);
	doh.run();
});
</script>
</head>
<body>
<div dojoType="dojox.wire.ml.Invocation"
	triggerTopic="invokeMethod"
	object="dojox.wire.ml.tests.markup.Invocation"
	method="invoke"
	parameters="dojox.wire.ml.tests.markup.Invocation.parameters.a,dojox.wire.ml.tests.markup.Invocation.parameters.b"
	result="dojox.wire.ml.tests.markup.Invocation.result"></div>
<div dojoType="dojox.wire.ml.Invocation"
	triggerTopic="invokeTopic"
	topic="invokeError"
	parameters="dojox.wire.ml.tests.markup.Invocation.parameters.c"></div>
<div dojoType="dojox.wire.ml.Invocation"
	triggerTopic="invokeError"
	object="dojox.wire.ml.tests.markup.Invocation"
	method="invokeError"
	error="dojox.wire.ml.tests.markup.Invocation.error"></div>
</body>
</html>

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
dojo_src-1.5.0 dojo/dojox/wire/tests/markup/Invocation.html
dojo_src-1.4.3 dojo/dojox/wire/tests/markup/Invocation.html
dojo_src-1.4.102 dojo/dojox/wire/tests/markup/Invocation.html
dojo-pkg-1.132.0 data/dojo-release-1.3.2-src/dojox/wire/tests/markup/Invocation.html
dojo-pkg-1.111.0 data/dojo-release-1.1.1-src/dojox/wire/tests/markup/Invocation.html
dojo-pkg-1.120.0 data/dojo-release-1.2.0-src/dojox/wire/tests/markup/Invocation.html
dojo-pkg-1.121.0 data/dojo-release-1.2.1-src/dojox/wire/tests/markup/Invocation.html
dojo-pkg-1.122.0 data/dojo-release-1.2.2-src/dojox/wire/tests/markup/Invocation.html
dojo-pkg-1.123.0 data/dojo-release-1.2.3-src/dojox/wire/tests/markup/Invocation.html
dojo-pkg-1.130.0 data/dojo-release-1.3.0-src/dojox/wire/tests/markup/Invocation.html
dojo-pkg-1.131.0 data/dojo-release-1.3.1-src/dojox/wire/tests/markup/Invocation.html