OSDN Git Service

Modify the updateList method
authordhrname <dhrname@users.sourceforge.jp>
Thu, 20 Oct 2016 12:22:46 +0000 (21:22 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Thu, 20 Oct 2016 12:22:46 +0000 (21:22 +0900)
org/w3c/dom/smil.js
tool/Spec/spec/SvgDomSpec.js

index a3aeaab..ffe453b 100644 (file)
@@ -458,6 +458,8 @@ base("$frame").mix ( {
     /*$listオブジェクトを更新するメソッド*/\r
     updateList: function() {\r
       this.$list = this.$list.up();\r
+      /*$endオブジェクトに付属している$listプロパティを更新したものと一致させておく*/\r
+      this.$activate.end && (this.$activate.end.$list = this.$list);\r
       return this;\r
     }\r
     \r
index bf90ef5..720ffbb 100644 (file)
@@ -494,6 +494,7 @@ describe("SMIL Animation Spec", function() {
       var $list = begin.$list;\r
       expect(begin.$list).toBe($list);\r
       expect(begin.updateList().$list).not.toBe($list);\r
+      expect(begin.$activate.end.$list).toBe(begin.$list);\r
     } );\r
     /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/\r
     it("should be this for the value (the invalid partion)", function() {\r