Changeset 982
- Timestamp:
- 11/26/08 21:12:24 (3 years ago)
- Location:
- trunk/core
- Files:
-
- 1 deleted
- 2 edited
-
data/TestCases/TestCaseTWikiJavascripts.txt (modified) (1 diff)
-
pub/System/JavascriptFiles/foswiki.js (modified) (1 diff)
-
pub/System/JavascriptFiles/twikiFunction.js (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/data/TestCases/TestCaseTWikiJavascripts.txt
r981 r982 642 642 </script> 643 643 644 ---++ twiki.Function645 <script language="javascript" src="%PUBURL%/%SYSTEMWEB%/JavascriptFiles/twikiFunction.js"></script>646 647 ---+++ twiki.Function.extendClass648 <script language="javascript">649 /*<![CDATA[*/650 function testExtendClassWithValidArgs() {651 var conversation = "";652 var expectedConversation = "poohgrmmpfgarfieldmew";653 654 function Animal (inName) {655 this.name = inName;656 }657 Animal.prototype.yell = "...";658 Animal.prototype.talk = function () {659 conversation += this.name + this.yell;660 }661 function Grizzly () {}662 Grizzly = twiki.Function.extendClass(Grizzly, Animal);663 Grizzly.prototype.yell = "grmmpf";664 var pooh = new Grizzly("pooh");665 pooh.talk();666 667 function Cat () {}668 Cat = twiki.Function.extendClass(Cat, Animal);669 Cat.prototype.yell = "mew";670 var garfield = new Cat("garfield");671 garfield.talk();672 assertEquals("Conversation result", expectedConversation, conversation);673 }674 /*]]>*/675 </script>676 677 644 678 645 ---++ twiki.Pref -
trunk/core/pub/System/JavascriptFiles/foswiki.js
r981 r982 9 9 foswikiEvent.js 10 10 foswikiForm.js 11 twikiFunction.js12 11 twikiHTML.js 13 12 twikiPref.js
Note: See TracChangeset
for help on using the changeset viewer.
