• R/O
  • HTTP
  • SSH
  • HTTPS

sie: コミット

ブラウザでSVGを表示するSIEの開発 (SIE - to display SVG on legacy browsers)


コミットメタ情報

リビジョン9a229c8542176fc96c54a841db2db3d27e0be299 (tree)
日時2015-10-13 21:40:15
作者dhrname <dhrname@user...>
コミッターdhrname

ログメッセージ

Support for the id.begin / id.end syntax

変更サマリ

差分

--- a/org/w3c/dom/smil.js
+++ b/org/w3c/dom/smil.js
@@ -1235,13 +1235,12 @@ base("$frame").up("$svgEvent").mix( {
12351235 }
12361236 };
12371237 if (obj) {
1238- obj.next = first;
1238+ obj = obj.next.next.next = first;
12391239 } else {
12401240 this.first = first;
12411241 obj = first;
12421242 }
12431243 }
1244- console.log(this.first);
12451244 }
12461245 timelines = obj = void 0;
12471246 },
--- a/tool/Spec/spec/SvgDomSpec.js
+++ b/tool/Spec/spec/SvgDomSpec.js
@@ -4195,7 +4195,7 @@ describe("SMIL Animation Spec", function() {
41954195 } );
41964196 } );
41974197 describe("$frame.$svgEvent object", function() {
4198- var frame = base("$frame").$svgEvent,
4198+ var frame = base("$frame").$svgEvent.up(),
41994199 p, ele;
42004200 beforeEach( function() {
42014201 base("$frame").timelines = frame.timelines = [];
@@ -4210,7 +4210,7 @@ describe("SMIL Animation Spec", function() {
42104210 expect(frame.first).toBeNull();
42114211 frame.setTimeTable(0);
42124212 expect(frame.first).toBeNull();
4213- base("$frame").addLine( base("$frame").$begin.up().mix({
4213+ frame.addLine( base("$frame").$begin.up().mix({
42144214 timelines: [],
42154215 begin: 0,
42164216 activeTime: 0,
@@ -4239,7 +4239,7 @@ describe("SMIL Animation Spec", function() {
42394239 } );
42404240 /*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/
42414241 it("should be this for the value (the valid partion )", function() {
4242- base("$frame").addLine( base("$frame").$begin.up().mix({
4242+ frame.addLine( base("$frame").$begin.up().mix({
42434243 timelines: [],
42444244 begin: 0,
42454245 activeTime: 0,
@@ -4302,17 +4302,15 @@ describe("SMIL Animation Spec", function() {
43024302 frame.setFrame(0);
43034303 expect(frame.first).toBeNull();
43044304
4305- base("$frame").timelines = [];
4306- delete frame.timelines;
4307- base("$frame").addLine( base("$frame").$begin.up().mix({
4305+ frame.timelines = [];
4306+ frame.addLine( base("$frame").$begin.up().mix({
43084307 timelines: [],
43094308 begin: 0,
43104309 activeTime: 10,
43114310 target: ele
43124311 }) );
43134312 frame.setTimeTable(0);
4314- expect(frame.first).toEqual(
4315- { frame: 0,
4313+ var a = { frame: 0,
43164314 eventType: "begin",
43174315 target: ele,
43184316
@@ -4328,8 +4326,35 @@ describe("SMIL Animation Spec", function() {
43284326 next: null
43294327 }
43304328 }
4331- }
4332- );
4329+ };
4330+ expect(frame.first).toEqual(a);
4331+
4332+ frame.addLine( base("$frame").$begin.up().mix({
4333+ timelines: [],
4334+ begin: 0,
4335+ activeTime: 11,
4336+ target: ele
4337+ }) );
4338+ console.log(frame.timelines);
4339+ frame.setTimeTable(0);
4340+ a.next.next.next = { frame: 0,
4341+ eventType: "begin",
4342+ target: ele,
4343+
4344+ next: { frame: 0,
4345+ eventType: "repeat",
4346+ limit: 0,
4347+ simpleDuration: 0,
4348+ target: ele,
4349+
4350+ next: { frame: 11,
4351+ eventType: "end",
4352+ target: ele,
4353+ next: null
4354+ }
4355+ }
4356+ };
4357+ expect(frame.first).toEqual(a);
43334358 } );
43344359 } );
43354360 describe("Event", function() {
旧リポジトリブラウザで表示