OSDN Git Service

onメソッドの実装を開始
authordhrname <dhrname@users.sourceforge.jp>
Sun, 12 Jan 2014 13:09:03 +0000 (22:09 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Sun, 12 Jan 2014 13:09:03 +0000 (22:09 +0900)
tool/funcproto/FuncSpecRunner.html
tool/funcproto/base.js

index 0161051..8645dc2 100644 (file)
@@ -200,6 +200,7 @@ describe("base.js", function() {
   });\r
   it("a constructor property (method)", function() {\r
     expect(base("$wt").constructor.prototype).toBe(gl);\r
+    expect(base("$wt").up("$wu").constructor.prototype).toBe(base("$wt"));\r
   });\r
   it("a mix method", function() {\r
     expect(typeof base("$a").mix).toBe("function");\r
@@ -278,6 +279,7 @@ describe("base.js", function() {
   });\r
   it("an on method", function() {\r
     expect(typeof base("$t").on).toEqual("function");\r
+    expect(base("$t").on("hoge")).toBe(base("$t"));\r
   });\r
 });\r
 </script>\r
index a73eb4c..68231f0 100644 (file)
@@ -48,5 +48,5 @@ base.mix = function(obj) {
 };\r
 \r
 base.on = function(name) {\r
-  \r
+  return this;\r
 };
\ No newline at end of file