| define(['view/result/koralquery','util'], function (kqClass) { |
| describe('KorAP.View.Result.KoralQuery', function () { |
| it('should be initializable', function () { |
| var kq = kqClass.create(); |
| var content = kq.element().firstChild.textContent; |
| expect(content).toMatch(/test/); |
| expect(content).toMatch(/cool/); |
| it('should deal with XML fragments', function () { |
| "test" : "Das ist <b>Super!</b>" |
| var kq = kqClass.create(); |
| var content = kq.element().firstChild.textContent; |
| expect(content).toMatch(/test/); |
| expect(content).toMatch(/Das ist <b>Super!<\/b>/); |