Move token view to match
Change-Id: I24ae6d8b40509d976be7ff222b983aae5b66fe1e
diff --git a/dev/js/spec/matchSpec.js b/dev/js/spec/matchSpec.js
index 8df6e86..4553d97 100644
--- a/dev/js/spec/matchSpec.js
+++ b/dev/js/spec/matchSpec.js
@@ -94,6 +94,7 @@
" </span>" +
" </span>" +
"</span>" +
+ "<mark>" +
"<span title=\"cnx/l:deutlich\">" +
" <span title=\"cnx/p:A\">" +
" <span title=\"cnx/syn:@PREMOD\">" +
@@ -107,6 +108,7 @@
" </span>" +
" </span>" +
"</span>" +
+ "</mark>" +
"<span title=\"cnx/l:fähig\">" +
" <span title=\"cnx/l:leistung\">" +
" <span title=\"cnx/p:A\">" +
@@ -485,8 +487,11 @@
expect(tr.children[0].firstChild.nodeValue).toBe('Foundry');
expect(tr.children[1].firstChild.nodeValue).toBe('Layer');
expect(tr.children[2].firstChild.nodeValue).toBe('meist');
+ expect(tr.children[2].classList.contains('mark')).toBeFalsy();
expect(tr.children[3].firstChild.nodeValue).toBe('deutlich');
+ expect(tr.children[3].classList.contains('mark')).toBeTruthy();
expect(tr.children[4].firstChild.nodeValue).toBe('leistungsfähiger');
+ expect(tr.children[4].classList.contains('mark')).toBeFalsy();
// first row
tr = e.children[1].children[0];