-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
59 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,59 @@ | ||
// describe('Static Directive', function() { | ||
// var staticEl = createTestElement("static", '<h1><span m-static>{{msg}}</span><h1>'); | ||
// var span = staticEl.firstChild.firstChild; | ||
// | ||
// var app = new Moon({ | ||
// root: "#static", | ||
// data: { | ||
// msg: "Hello Moon!" | ||
// } | ||
// }); | ||
// | ||
// it('should initialize with dynamic value', function() { | ||
// return wait(function() { | ||
// expect(span.innerHTML).to.equal("Hello Moon!"); | ||
// }); | ||
// }); | ||
// | ||
// it('should not update with dynamic value', function() { | ||
// app.set("msg", "Changed"); | ||
// return wait(function() { | ||
// expect(span.innerHTML).to.equal("Hello Moon!"); | ||
// }); | ||
// }); | ||
// | ||
// it('should not be present at runtime', function() { | ||
// expect(span.getAttribute("m-static")).to.be['null']; | ||
// }); | ||
// | ||
// describe("Nested", function() { | ||
// var staticNestedEl = createTestElement("staticNested", '<h1 m-static><span m-static>{{msg}}</span><h1>'); | ||
// var h1 = staticEl.firstChild; | ||
// var span = h1.firstChild; | ||
// | ||
// var app = new Moon({ | ||
// root: "#staticNested", | ||
// data: { | ||
// msg: "Hello Moon!" | ||
// } | ||
// }); | ||
// | ||
// it('should initialize with dynamic value', function() { | ||
// return wait(function() { | ||
// expect(span.innerHTML).to.equal("Hello Moon!"); | ||
// }); | ||
// }); | ||
// | ||
// it('should not update with dynamic value', function() { | ||
// app.set("msg", "Changed"); | ||
// return wait(function() { | ||
// expect(span.innerHTML).to.equal("Hello Moon!"); | ||
// }); | ||
// }); | ||
// | ||
// it('should not be present at runtime', function() { | ||
// expect(h1.getAttribute("m-static")).to.be['null']; | ||
// expect(span.getAttribute("m-static")).to.be['null']; | ||
// }); | ||
// }); | ||
// }); | ||
describe('Static Directive', function() { | ||
var staticEl = createTestElement("static", '<h1><span m-static>{{msg}}</span><h1>'); | ||
var span = staticEl.firstChild.firstChild; | ||
|
||
var app = new Moon({ | ||
root: "#static", | ||
data: { | ||
msg: "Hello Moon!" | ||
} | ||
}); | ||
|
||
// it('should initialize with dynamic value', function() { | ||
// return wait(function() { | ||
// expect(span.innerHTML).to.equal("Hello Moon!"); | ||
// }); | ||
// }); | ||
// | ||
// it('should not update with dynamic value', function() { | ||
// app.set("msg", "Changed"); | ||
// return wait(function() { | ||
// expect(span.innerHTML).to.equal("Hello Moon!"); | ||
// }); | ||
// }); | ||
// | ||
// it('should not be present at runtime', function() { | ||
// expect(span.getAttribute("m-static")).to.be['null']; | ||
// }); | ||
// | ||
// describe("Nested", function() { | ||
// var staticNestedEl = createTestElement("staticNested", '<h1 m-static><span m-static>{{msg}}</span><h1>'); | ||
// var h1 = staticEl.firstChild; | ||
// var span = h1.firstChild; | ||
// | ||
// var app = new Moon({ | ||
// root: "#staticNested", | ||
// data: { | ||
// msg: "Hello Moon!" | ||
// } | ||
// }); | ||
// | ||
// it('should initialize with dynamic value', function() { | ||
// return wait(function() { | ||
// expect(span.innerHTML).to.equal("Hello Moon!"); | ||
// }); | ||
// }); | ||
// | ||
// it('should not update with dynamic value', function() { | ||
// app.set("msg", "Changed"); | ||
// return wait(function() { | ||
// expect(span.innerHTML).to.equal("Hello Moon!"); | ||
// }); | ||
// }); | ||
// | ||
// it('should not be present at runtime', function() { | ||
// expect(h1.getAttribute("m-static")).to.be['null']; | ||
// expect(span.getAttribute("m-static")).to.be['null']; | ||
// }); | ||
// }); | ||
}); |