define(["lib/htmlparser"], function(htmlparser) {
    describe("HTMLParser", function() {
        describe("HTML syntax", function() {
            it("Colon in attribute name", function() {
                var input = "<html xml:lang=\"en\"></html>",
                    handler = jasmine.createSpyObj("handler", ["start"]);
                htmlparser.HTMLParser(input, handler);
                expect(handler.start.calls.length).toEqual(1);
                expect(handler.start).toHaveBeenCalledWith("html", [{name: "xml:lang", value: "en", escaped: "en"}], false);
            });

            it("Colon in tag name", function() {
                var input = "<tal:span></tal:span>",
                    handler = jasmine.createSpyObj("handler", ["start"]);
                htmlparser.HTMLParser(input, handler);
                expect(handler.start.calls.length).toEqual(1);
                expect(handler.start).toHaveBeenCalledWith("tal:span", [], false);
            });
            
            it("Two consecutive double quotes in attribute", function() {
                var input = "<a data-test='\"\"'></a>",
                    handler = jasmine.createSpyObj("handler", ["start"]);
                htmlparser.HTMLParser(input, handler);
                expect(handler.start.calls.length).toEqual(1);
                expect(handler.start).toHaveBeenCalledWith("a", [{name: "data-test", value: "\"\"", escaped: "\\\"\\\""}], false);
            });
        });
    });
});

@@ -971,28 +971,16 @@
     %7D);%0A
-            
 %0A       
@@ -980,24 +980,25 @@
             
+x
 it(%22Two cons

disable currently failing htmlparser spec