| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
var gTestfile = 'regress-76683.js'; |
| 16 |
var i = 0; |
| 17 |
var BUGNUMBER = 76683; |
| 18 |
var summary = 'Regression test for Bugzilla bug 76683'; |
| 19 |
var status = ''; |
| 20 |
var statusmessages = new Array(); |
| 21 |
var pattern = ''; |
| 22 |
var patterns = new Array(); |
| 23 |
var string = ''; |
| 24 |
var strings = new Array(); |
| 25 |
var actualmatch = ''; |
| 26 |
var actualmatches = new Array(); |
| 27 |
var expectedmatch = ''; |
| 28 |
var expectedmatches = new Array(); |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
string = 'abc'; |
| 36 |
status = inSection(1); |
| 37 |
pattern = /(<!--([^-]|-[^-]|--[^>])*-->)|(<([\$\w:\.\-]+)((([ ][^\/>]*)?\/>)|(([ ][^>]*)?>)))/; |
| 38 |
actualmatch = string.match(pattern); |
| 39 |
expectedmatch = null; |
| 40 |
addThis(); |
| 41 |
|
| 42 |
status = inSection(2); |
| 43 |
pattern = /(<!--([^-]|-[^-]|--[^>])*-->)|(<(tagPattern)((([ ][^\/>]*)?\/>)|(([ ][^>]*)?>)))/; |
| 44 |
actualmatch = string.match(pattern); |
| 45 |
expectedmatch = null; |
| 46 |
addThis(); |
| 47 |
|
| 48 |
|
| 49 |
status = inSection(3); |
| 50 |
pattern = /(<!--([^-]|-[^-]|--[^>])*-->)|(<(tagPattern)((([ ][^\/>]*)?\/>)|(([ ][^>]*)?>)))|(<\/tagPattern[^>]*>)/; |
| 51 |
actualmatch = string.match(pattern); |
| 52 |
expectedmatch = null; |
| 53 |
addThis(); |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
test(); |
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
function addThis() |
| 64 |
{ |
| 65 |
statusmessages[i] = status; |
| 66 |
patterns[i] = pattern; |
| 67 |
strings[i] = string; |
| 68 |
actualmatches[i] = actualmatch; |
| 69 |
expectedmatches[i] = expectedmatch; |
| 70 |
i++; |
| 71 |
} |
| 72 |
|
| 73 |
|
| 74 |
function test() |
| 75 |
{ |
| 76 |
enterFunc ('test'); |
| 77 |
printBugNumber(BUGNUMBER); |
| 78 |
printStatus (summary); |
| 79 |
testRegExp(statusmessages, patterns, strings, actualmatches, expectedmatches); |
| 80 |
exitFunc ('test'); |
| 81 |
} |