Permalink
Browse files

Avoid comparing full message text

  • Loading branch information...
1 parent f25d986 commit 6d4a5f76cdde8690693d91ffd6cedb965dc01799 @SebastianZ SebastianZ committed May 7, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 tests/content/console/5945/issue5945.js
@@ -18,16 +18,17 @@ function runTest()
var rows = panel.panelNode.getElementsByClassName("logRow");
// The exact column number is not tested since it can differ
- // from some uknown reason. Sounds like Firefox bug, but we
+ // for some unknown reason. Sounds like Firefox bug, but we
// don't have a test case.
+ // Also the full messages are not checked to avoid language conflicts
var expected = [
{
- msg: "Error in parsing value for 'background'. Declaration dropped.",
+ msg: /'background'/,
source: "background: not-existing-function();",
link: /cssWithErrors\.css\s*\(line\s*2\,\s*col\s*\d+\)/
},
{
- msg: "Expected color but found 'notacolor'. Error in parsing value for 'color'. Declaration dropped.",
+ msg: /'notacolor'.*?'color'/,
source: "color: notacolor;",
link: /cssWithErrors\.css\s*\(line\s*6\,\s*col\s*\d+\)/
}]

0 comments on commit 6d4a5f7

Please sign in to comment.