(expected)
| 32 | const base = expected.base === null ? "about:blank" : expected.base; |
| 33 | |
| 34 | function getKey(expected) { |
| 35 | if (expected.protocol) { |
| 36 | return expected.protocol.replace(":", ""); |
| 37 | } |
| 38 | if (expected.failure) { |
| 39 | return expected.input.split(":")[0]; |
| 40 | } |
| 41 | return "other"; |
| 42 | } |
| 43 | |
| 44 | subsetTestByKey(getKey(expected), test, function() { |
| 45 | var url = bURL(expected.input, base) |