equal
deleted
inserted
replaced
34 test("test annotation display function", function() { |
34 test("test annotation display function", function() { |
35 var widget = new IriSP.AnnotationsWidget(this.Popcorn, this.config, this.ser); |
35 var widget = new IriSP.AnnotationsWidget(this.Popcorn, this.config, this.ser); |
36 widget.draw(); |
36 widget.draw(); |
37 var annotation = {content: {"title": "title", "description": "description", "keywords": "keywords"}}; |
37 var annotation = {content: {"title": "title", "description": "description", "keywords": "keywords"}}; |
38 widget.displayAnnotation(annotation); |
38 widget.displayAnnotation(annotation); |
39 equal(widget.selector.find(".Ldt-SaTitle").text(), "title", "title set correctly"); |
39 equal(widget.selector.find(".Ldt-SaTitle").text(), "title - ( NaN:NaN - NaN:NaN )", "title set correctly"); |
40 equal(widget.selector.find(".Ldt-SaDescription").text(), "description", "description set correctly"); |
40 equal(widget.selector.find(".Ldt-SaDescription").text(), "description", "description set correctly"); |
41 equal(widget.selector.find(".Ldt-SaKeywordText").text(), "", "keywords field set correctly"); |
41 equal(widget.selector.find(".Ldt-SaKeywordText").text(), "", "keywords field set correctly"); |
42 }); |
42 }); |
43 }; |
43 }; |