MCPcopy
hub / github.com/layerJS/layerJS / check

Function check

test/spec/LayerView_spec.js:110–129  ·  view source on GitHub ↗
(html, specialFrameName, expectedFrameName, done)

Source from the content-addressed store, hash-verified

108 describe('can transition to special frame name', function() {
109
110 function check(html, specialFrameName, expectedFrameName, done) {
111 var element = utilities.appendChildHTML(html);
112
113 var stageView1 = new StageView({
114 el: element
115 });
116
117 var layerView1 = document.getElementById('layer1')._ljView;
118
119 layerView1.transitionTo(specialFrameName, {
120 duration: ''
121 }).then(function() {
122 if (null === expectedFrameName) {
123 expect(layerView1.currentFrame).toBe(null);
124 } else {
125 expect(layerView1.currentFrame.name()).toBe(expectedFrameName);
126 }
127 done();
128 });
129 }
130
131 it('!none', function(done) {
132 check("<div data-lj-type='stage' id='stage1'>" +

Callers 1

LayerView_spec.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected