lydell/source-map-url

2014-02-24 20:22:32
✓8.0
✓9.0
✓10.0
✓29.0
✓24.0
5.0
✓12.0
✓15.0
6.0
4.0
timeout waiting to hear back from safari/5.0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
2014-02-24 17:19:50
8.0
9.0
10.0
29.0
24.0
5.0
12.0
15.0
6.0
4.0
not ok 1 Error: Error: Cannot find module 'buffer' on line 1
timeout waiting to hear back from iexplore/8.0
2014-02-23 09:48:44
8.0
✓9.0
✓10.0
✓29.0
✓24.0
5.0
✓12.0
15.0
✓6.0
4.0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
timeout waiting to hear back from safari/5.0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
not ok 1 Error: Object doesn't support this property or method on line 5330
2014-02-22 16:43:57
8.0
✓9.0
✓10.0
✓29.0
✓24.0
5.0
✓12.0
15.0
✓6.0
4.0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
timeout waiting to hear back from safari/5.0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
1..155 ok 1 sourceMappingURL is an instance of SourceMappingURL ok 2 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines ok 3 sourceMappingURL .get gets the url from the 'universal' syntax with '\n' newlines, with no code ok 4 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines ok 5 sourceMappingURL .get gets the url from the 'universal' syntax with '\r' newlines, with no code ok 6 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines ok 7 sourceMappingURL .get gets the url from the 'universal' syntax with '\r\n' newlines, with no code ok 8 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines ok 9 sourceMappingURL .get gets the url from the 'js' syntax with '\n' newlines, with no code ok 10 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines ok 11 sourceMappingURL .get gets the url from the 'js' syntax with '\r' newlines, with no code ok 12 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines ok 13 sourceMappingURL .get gets the url from the 'js' syntax with '\r\n' newlines, with no code ok 14 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines ok 15 sourceMappingURL .get gets the url from the 'block' syntax with '\n' newlines, with no code ok 16 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines ok 17 sourceMappingURL .get gets the url from the 'block' syntax with '\r' newlines, with no code ok 18 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines ok 19 sourceMappingURL .get gets the url from the 'block' syntax with '\r\n' newlines, with no code ok 20 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines ok 21 sourceMappingURL .get gets the url from the 'mix' syntax with '\n' newlines, with no code ok 22 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines ok 23 sourceMappingURL .get gets the url from the 'mix' syntax with '\r' newlines, with no code ok 24 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines ok 25 sourceMappingURL .get gets the url from the 'mix' syntax with '\r\n' newlines, with no code ok 26 sourceMappingURL .get returns null if no comment ok 27 sourceMappingURL .get can return an empty string as url ok 28 sourceMappingURL .set updates the comment for the 'universal' syntax with '\n' newlines ok 29 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\n' newlines ok 30 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r' newlines ok 31 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r' newlines ok 32 sourceMappingURL .set updates the comment for the 'universal' syntax with '\r\n' newlines ok 33 sourceMappingURL .set allows to change comment syntax for the 'universal' syntax with '\r\n' newlines ok 34 sourceMappingURL .set updates the comment for the 'js' syntax with '\n' newlines ok 35 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\n' newlines ok 36 sourceMappingURL .set updates the comment for the 'js' syntax with '\r' newlines ok 37 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r' newlines ok 38 sourceMappingURL .set updates the comment for the 'js' syntax with '\r\n' newlines ok 39 sourceMappingURL .set allows to change comment syntax for the 'js' syntax with '\r\n' newlines ok 40 sourceMappingURL .set updates the comment for the 'block' syntax with '\n' newlines ok 41 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\n' newlines ok 42 sourceMappingURL .set updates the comment for the 'block' syntax with '\r' newlines ok 43 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r' newlines ok 44 sourceMappingURL .set updates the comment for the 'block' syntax with '\r\n' newlines ok 45 sourceMappingURL .set allows to change comment syntax for the 'block' syntax with '\r\n' newlines ok 46 sourceMappingURL .set updates the comment for the 'mix' syntax with '\n' newlines ok 47 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\n' newlines ok 48 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r' newlines ok 49 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r' newlines ok 50 sourceMappingURL .set updates the comment for the 'mix' syntax with '\r\n' newlines ok 51 sourceMappingURL .set allows to change comment syntax for the 'mix' syntax with '\r\n' newlines ok 52 sourceMappingURL .set tries to use the same newline as the rest of the code ok 53 sourceMappingURL .set defaults to \n if no newline ok 54 sourceMappingURL .set always adds a newline ok 55 sourceMappingURL .set adds a comment if no comment ok 56 sourceMappingURL .set obeys a changed default comment syntax ok 57 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines ok 58 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\n' newlines, with no code ok 59 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines ok 60 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r' newlines, with no code ok 61 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines ok 62 sourceMappingURL .remove removes the comment for the 'universal' syntax with '\r\n' newlines, with no code ok 63 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines ok 64 sourceMappingURL .remove removes the comment for the 'js' syntax with '\n' newlines, with no code ok 65 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines ok 66 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r' newlines, with no code ok 67 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines ok 68 sourceMappingURL .remove removes the comment for the 'js' syntax with '\r\n' newlines, with no code ok 69 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines ok 70 sourceMappingURL .remove removes the comment for the 'block' syntax with '\n' newlines, with no code ok 71 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines ok 72 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r' newlines, with no code ok 73 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines ok 74 sourceMappingURL .remove removes the comment for the 'block' syntax with '\r\n' newlines, with no code ok 75 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines ok 76 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\n' newlines, with no code ok 77 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines ok 78 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r' newlines, with no code ok 79 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines ok 80 sourceMappingURL .remove removes the comment for the 'mix' syntax with '\r\n' newlines, with no code ok 81 sourceMappingURL .remove does nothing if no comment ok 82 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\n' newlines ok 83 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r' newlines ok 84 sourceMappingURL .insertBefore inserts a string before the comment for the 'universal' syntax with '\r\n' newlines ok 85 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\n' newlines ok 86 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r' newlines ok 87 sourceMappingURL .insertBefore inserts a string before the comment for the 'js' syntax with '\r\n' newlines ok 88 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\n' newlines ok 89 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r' newlines ok 90 sourceMappingURL .insertBefore inserts a string before the comment for the 'block' syntax with '\r\n' newlines ok 91 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\n' newlines ok 92 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r' newlines ok 93 sourceMappingURL .insertBefore inserts a string before the comment for the 'mix' syntax with '\r\n' newlines ok 94 sourceMappingURL .insertBefore appends if no comment ok 95 sourceMappingURL .regex includes ._innerRegex ok 96 sourceMappingURL .regex includes ._newlineRegex ok 97 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, even with trailing whitespace ok 98 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with no code ok 99 sourceMappingURL .regex matches the 'universal' syntax with '\n' newlines, with trailing whitespace ok 100 sourceMappingURL .regex only matches the 'universal' syntax with '\n' newlines at the end of files ok 101 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, even with trailing whitespace ok 102 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with no code ok 103 sourceMappingURL .regex matches the 'universal' syntax with '\r' newlines, with trailing whitespace ok 104 sourceMappingURL .regex only matches the 'universal' syntax with '\r' newlines at the end of files ok 105 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, even with trailing whitespace ok 106 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with no code ok 107 sourceMappingURL .regex matches the 'universal' syntax with '\r\n' newlines, with trailing whitespace ok 108 sourceMappingURL .regex only matches the 'universal' syntax with '\r\n' newlines at the end of files ok 109 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, even with trailing whitespace ok 110 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with no code ok 111 sourceMappingURL .regex matches the 'js' syntax with '\n' newlines, with trailing whitespace ok 112 sourceMappingURL .regex only matches the 'js' syntax with '\n' newlines at the end of files ok 113 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, even with trailing whitespace ok 114 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with no code ok 115 sourceMappingURL .regex matches the 'js' syntax with '\r' newlines, with trailing whitespace ok 116 sourceMappingURL .regex only matches the 'js' syntax with '\r' newlines at the end of files ok 117 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, even with trailing whitespace ok 118 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with no code ok 119 sourceMappingURL .regex matches the 'js' syntax with '\r\n' newlines, with trailing whitespace ok 120 sourceMappingURL .regex only matches the 'js' syntax with '\r\n' newlines at the end of files ok 121 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, even with trailing whitespace ok 122 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with no code ok 123 sourceMappingURL .regex matches the 'block' syntax with '\n' newlines, with trailing whitespace ok 124 sourceMappingURL .regex only matches the 'block' syntax with '\n' newlines at the end of files ok 125 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, even with trailing whitespace ok 126 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with no code ok 127 sourceMappingURL .regex matches the 'block' syntax with '\r' newlines, with trailing whitespace ok 128 sourceMappingURL .regex only matches the 'block' syntax with '\r' newlines at the end of files ok 129 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, even with trailing whitespace ok 130 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with no code ok 131 sourceMappingURL .regex matches the 'block' syntax with '\r\n' newlines, with trailing whitespace ok 132 sourceMappingURL .regex only matches the 'block' syntax with '\r\n' newlines at the end of files ok 133 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, even with trailing whitespace ok 134 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with no code ok 135 sourceMappingURL .regex matches the 'mix' syntax with '\n' newlines, with trailing whitespace ok 136 sourceMappingURL .regex only matches the 'mix' syntax with '\n' newlines at the end of files ok 137 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, even with trailing whitespace ok 138 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with no code ok 139 sourceMappingURL .regex matches the 'mix' syntax with '\r' newlines, with trailing whitespace ok 140 sourceMappingURL .regex only matches the 'mix' syntax with '\r' newlines at the end of files ok 141 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, even with trailing whitespace ok 142 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with no code ok 143 sourceMappingURL .regex matches the 'mix' syntax with '\r\n' newlines, with trailing whitespace ok 144 sourceMappingURL .regex only matches the 'mix' syntax with '\r\n' newlines at the end of files ok 145 sourceMappingURL .regex does not match some cases that are easy to mess up ok 146 sourceMappingURL .regex is liberal regarding inner whitespace ok 147 sourceMappingURL ._innerRegex matches the contents of sourceMappingURL comments ok 148 sourceMappingURL ._innerRegex captures the url in the first capture group ok 149 sourceMappingURL ._innerRegex supports the legacy syntax ok 150 sourceMappingURL ._newlineRegex matches \n ok 151 sourceMappingURL ._newlineRegex matches \r ok 152 sourceMappingURL ._newlineRegex matches \r\n ok 153 sourceMappingURL ._commentSyntax defaults to /**/ comments ok 154 sourceMappingURL .SourceMappingURL sets ._commentSyntax ok 155 sourceMappingURL .SourceMappingURL creates an equivalent sourceMappingURL object # tests 155 # pass 155 # fail 0
not ok 1 Error: Object doesn't support this property or method on line 5330
2014-02-22 16:11:19