Преглед изворни кода

fixing false positive with RNG state 0bc96fe3b8d170254a

El RIDO пре 8 година
родитељ
комит
cbcc26ec37
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      js/test.js

+ 6 - 0
js/test.js

@@ -802,6 +802,12 @@ describe('Model', function () {
                 id = id.join('');
                 id = id.join('');
                 element = element.join('');
                 element = element.join('');
                 value = value.join('').trim();
                 value = value.join('').trim();
+
+                // <br> tags can't contain strings, so test with a <p> instead
+                if (element == 'br') {
+                    element = 'p';
+                }
+
                 $('body').html(
                 $('body').html(
                     '<div id="templates"><' + element + ' id="' + id +
                     '<div id="templates"><' + element + ' id="' + id +
                     'template">' + value + '</' + element + '></div>'
                     'template">' + value + '</' + element + '></div>'