mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
Update web-platform-tests to revision 314de955a5102650136404f6439f22f8d838e0f4
This commit is contained in:
parent
521748c01e
commit
6b4094e2a4
133 changed files with 1609 additions and 628 deletions
|
@ -15,8 +15,8 @@
|
|||
|
||||
encode("ab", "ab", "very basic")
|
||||
// edge cases
|
||||
encode("\u9EA6", "&%2340614;", "Highest-pointer BMP character excluded from encoder");
|
||||
encode("\uD858\uDE6B", "&%23156267;", "Highest-pointer character excluded from encoder");
|
||||
encode("\u9EA6", "%26%2340614%3B", "Highest-pointer BMP character excluded from encoder");
|
||||
encode("\uD858\uDE6B", "%26%23156267%3B", "Highest-pointer character excluded from encoder");
|
||||
encode("\u3000", "%A1@", "Lowest-pointer character included in encoder");
|
||||
encode("\u20AC", "%A3%E1", "Euro; the highest-pointer character before a range of 30 unmapped pointers");
|
||||
encode("\u4E00", "%A4@", "The lowest-pointer character after the range of 30 unmapped pointers");
|
||||
|
@ -24,8 +24,8 @@
|
|||
encode("\uFFE2", "%C8%CD", "The lowest-pointer character after the range of 41 unmapped pointers");
|
||||
encode("\u79D4", "%FE%FE", "The last character in the index");
|
||||
// not in index
|
||||
encode("\u2603", "&%239731;", "The canonical BMP test character that is not in the index");
|
||||
encode("\uD83D\uDCA9", "&%23128169;", "The canonical astral test character that is not in the index");
|
||||
encode("\u2603", "%26%239731%3B", "The canonical BMP test character that is not in the index");
|
||||
encode("\uD83D\uDCA9", "%26%23128169%3B", "The canonical astral test character that is not in the index");
|
||||
// duplicate low bits
|
||||
encode("\uD840\uDFB5", "%FDj", "A Plane 2 character whose low 16 bits match a BMP character that has a lower pointer");
|
||||
// prefer last
|
||||
|
|
|
@ -17,5 +17,5 @@
|
|||
encode("\u4E02", "%81@", "character")
|
||||
encode("\uE4C6", "%A1@", "PUA")
|
||||
encode("\uE4C5", "%FE%FE", "PUA #2")
|
||||
encode("\ud83d\udca9", "&%23128169;", "poo")
|
||||
encode("\ud83d\udca9", "%26%23128169%3B", "poo")
|
||||
</script>
|
||||
|
|
|
@ -15,4 +15,5 @@
|
|||
encode("s", "s", "very basic")
|
||||
encode("\u00A5\u203Es\\\uFF90\u4F69", "%1B(J\\~s%1B(B\\%1B$B%_PP%1B(B", "basics")
|
||||
encode("\x0E\x0F\x1Bx", "%0E%0F%1Bx", "SO/SI ESC")
|
||||
encode("\uFFFD", "%26%2365533%3B", "U+FFFD");
|
||||
</script>
|
||||
|
|
|
@ -170,10 +170,7 @@ function runNext(id) {
|
|||
for (var j = 0; j < cplist[i].length; j++) {
|
||||
var t = tests[i][j];
|
||||
t.step(function() {
|
||||
assert_equals(
|
||||
normalizeStr(results[j]),
|
||||
normalizeStr(cplist[i][j].expected)
|
||||
);
|
||||
assert_equals(results[j], cplist[i][j].expected);
|
||||
});
|
||||
t.done();
|
||||
}
|
||||
|
|
|
@ -135,10 +135,7 @@ function runNext(id) {
|
|||
for (var j = 0; j < cplist[i].length; j++) {
|
||||
var t = tests[i][j];
|
||||
t.step(function() {
|
||||
assert_equals(
|
||||
normalizeStr(results[j]),
|
||||
normalizeStr(cplist[i][j].expected)
|
||||
);
|
||||
assert_equals(results[j], cplist[i][j].expected);
|
||||
});
|
||||
t.done();
|
||||
}
|
||||
|
|
|
@ -179,10 +179,7 @@ function runNext(id) {
|
|||
for (var j = 0; j < cplist[i].length; j++) {
|
||||
var t = tests[i][j];
|
||||
t.step(function() {
|
||||
assert_equals(
|
||||
normalizeStr(results[j]),
|
||||
normalizeStr(cplist[i][j].expected)
|
||||
);
|
||||
assert_equals(results[j], cplist[i][j].expected);
|
||||
});
|
||||
t.done();
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ function encode(input, expected, desc) {
|
|||
var a = document.createElement("a"); // <a> uses document encoding for URL's query
|
||||
a.href = "https://example.com/?" + input;
|
||||
result = a.search.substr(1); // remove leading "?"
|
||||
assert_equals(normalizeStr(result), normalizeStr(expected));
|
||||
assert_equals(result, expected);
|
||||
}, desc);
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ function encode(input, expected, desc) {
|
|||
var a = document.createElement("a"); // <a> uses document encoding for URL's query
|
||||
a.href = "https://example.com/?" + input;
|
||||
result = a.search.substr(1); // remove leading "?"
|
||||
assert_equals(normalizeStr(result), normalizeStr(expected));
|
||||
assert_equals(result, expected);
|
||||
}, desc);
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ function encode(input, expected, desc) {
|
|||
var a = document.createElement("a"); // <a> uses document encoding for URL's query
|
||||
a.href = "https://example.com/?" + input;
|
||||
result = a.search.substr(1); // remove leading "?"
|
||||
assert_equals(normalizeStr(result), normalizeStr(expected));
|
||||
assert_equals(result, expected);
|
||||
}, desc);
|
||||
}
|
||||
|
||||
|
|
|
@ -170,10 +170,7 @@ function runNext(id) {
|
|||
for (var j = 0; j < cplist[i].length; j++) {
|
||||
var t = tests[i][j];
|
||||
t.step(function() {
|
||||
assert_equals(
|
||||
normalizeStr(results[j]),
|
||||
normalizeStr(cplist[i][j].expected)
|
||||
);
|
||||
assert_equals(results[j], cplist[i][j].expected);
|
||||
});
|
||||
t.done();
|
||||
}
|
||||
|
|
|
@ -135,10 +135,7 @@ function runNext(id) {
|
|||
for (var j = 0; j < cplist[i].length; j++) {
|
||||
var t = tests[i][j];
|
||||
t.step(function() {
|
||||
assert_equals(
|
||||
normalizeStr(results[j]),
|
||||
normalizeStr(cplist[i][j].expected)
|
||||
);
|
||||
assert_equals(results[j], cplist[i][j].expected);
|
||||
});
|
||||
t.done();
|
||||
}
|
||||
|
|
|
@ -179,10 +179,7 @@ function runNext(id) {
|
|||
for (var j = 0; j < cplist[i].length; j++) {
|
||||
var t = tests[i][j];
|
||||
t.step(function() {
|
||||
assert_equals(
|
||||
normalizeStr(results[j]),
|
||||
normalizeStr(cplist[i][j].expected)
|
||||
);
|
||||
assert_equals(results[j], cplist[i][j].expected);
|
||||
});
|
||||
t.done();
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ function encode(input, expected, desc) {
|
|||
var a = document.createElement("a"); // <a> uses document encoding for URL's query
|
||||
a.href = "https://example.com/?" + input;
|
||||
result = a.search.substr(1); // remove leading "?"
|
||||
assert_equals(normalizeStr(result), normalizeStr(expected));
|
||||
assert_equals(result, expected);
|
||||
}, desc);
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ function encode(input, expected, desc) {
|
|||
var a = document.createElement("a"); // <a> uses document encoding for URL's query
|
||||
a.href = "https://example.com/?" + input;
|
||||
result = a.search.substr(1); // remove leading "?"
|
||||
assert_equals(normalizeStr(result), normalizeStr(expected));
|
||||
assert_equals(result, expected);
|
||||
}, desc);
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ function encode(input, expected, desc) {
|
|||
var a = document.createElement("a"); // <a> uses document encoding for URL's query
|
||||
a.href = "https://example.com/?" + input;
|
||||
result = a.search.substr(1); // remove leading "?"
|
||||
assert_equals(normalizeStr(result), normalizeStr(expected));
|
||||
assert_equals(result, expected);
|
||||
}, desc);
|
||||
}
|
||||
|
||||
|
|
|
@ -165,10 +165,7 @@ function runNext(id) {
|
|||
for (var j = 0; j < cplist[i].length; j++) {
|
||||
var t = tests[i][j];
|
||||
t.step(function() {
|
||||
assert_equals(
|
||||
normalizeStr(results[j]),
|
||||
normalizeStr(cplist[i][j].expected)
|
||||
);
|
||||
assert_equals(results[j], cplist[i][j].expected);
|
||||
});
|
||||
t.done();
|
||||
}
|
||||
|
|
|
@ -135,10 +135,7 @@ function runNext(id) {
|
|||
for (var j = 0; j < cplist[i].length; j++) {
|
||||
var t = tests[i][j];
|
||||
t.step(function() {
|
||||
assert_equals(
|
||||
normalizeStr(results[j]),
|
||||
normalizeStr(cplist[i][j].expected)
|
||||
);
|
||||
assert_equals(results[j], cplist[i][j].expected);
|
||||
});
|
||||
t.done();
|
||||
}
|
||||
|
|
|
@ -175,10 +175,7 @@ function runNext(id) {
|
|||
for (var j = 0; j < cplist[i].length; j++) {
|
||||
var t = tests[i][j];
|
||||
t.step(function() {
|
||||
assert_equals(
|
||||
normalizeStr(results[j]),
|
||||
normalizeStr(cplist[i][j].expected)
|
||||
);
|
||||
assert_equals(results[j], cplist[i][j].expected);
|
||||
});
|
||||
t.done();
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ function encode(input, expected, desc) {
|
|||
var a = document.createElement("a"); // <a> uses document encoding for URL's query
|
||||
a.href = "https://example.com/?" + input;
|
||||
result = a.search.substr(1); // remove leading "?"
|
||||
assert_equals(normalizeStr(result), normalizeStr(expected));
|
||||
assert_equals(result, expected);
|
||||
}, desc);
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ function encode(input, expected, desc) {
|
|||
var a = document.createElement("a"); // <a> uses document encoding for URL's query
|
||||
a.href = "https://example.com/?" + input;
|
||||
result = a.search.substr(1); // remove leading "?"
|
||||
assert_equals(normalizeStr(result), normalizeStr(expected));
|
||||
assert_equals(result, expected);
|
||||
}, desc);
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ function encode(input, expected, desc) {
|
|||
var a = document.createElement("a"); // <a> uses document encoding for URL's query
|
||||
a.href = "https://example.com/?" + input;
|
||||
result = a.search.substr(1); // remove leading "?"
|
||||
assert_equals(normalizeStr(result), normalizeStr(expected));
|
||||
assert_equals(result, expected);
|
||||
}, desc);
|
||||
}
|
||||
|
||||
|
|
|
@ -166,10 +166,7 @@ function runNext(id) {
|
|||
for (var j = 0; j < cplist[i].length; j++) {
|
||||
var t = tests[i][j];
|
||||
t.step(function() {
|
||||
assert_equals(
|
||||
normalizeStr(results[j]),
|
||||
normalizeStr(cplist[i][j].expected)
|
||||
);
|
||||
assert_equals(results[j], cplist[i][j].expected);
|
||||
});
|
||||
t.done();
|
||||
}
|
||||
|
|
|
@ -175,10 +175,7 @@ function runNext(id) {
|
|||
for (var j = 0; j < cplist[i].length; j++) {
|
||||
var t = tests[i][j];
|
||||
t.step(function() {
|
||||
assert_equals(
|
||||
normalizeStr(results[j]),
|
||||
normalizeStr(cplist[i][j].expected)
|
||||
);
|
||||
assert_equals(results[j], cplist[i][j].expected);
|
||||
});
|
||||
t.done();
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ function encode(input, expected, desc) {
|
|||
var a = document.createElement("a"); // <a> uses document encoding for URL's query
|
||||
a.href = "https://example.com/?" + input;
|
||||
result = a.search.substr(1); // remove leading "?"
|
||||
assert_equals(normalizeStr(result), normalizeStr(expected));
|
||||
assert_equals(result, expected);
|
||||
}, desc);
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ function encode(input, expected, desc) {
|
|||
var a = document.createElement("a"); // <a> uses document encoding for URL's query
|
||||
a.href = "https://example.com/?" + input;
|
||||
result = a.search.substr(1); // remove leading "?"
|
||||
assert_equals(normalizeStr(result), normalizeStr(expected));
|
||||
assert_equals(result, expected);
|
||||
}, desc);
|
||||
}
|
||||
|
||||
|
|
|
@ -136,10 +136,7 @@ function runNext(id) {
|
|||
for (var j = 0; j < cplist[i].length; j++) {
|
||||
var t = tests[i][j];
|
||||
t.step(function() {
|
||||
assert_equals(
|
||||
normalizeStr(results[j]),
|
||||
normalizeStr(cplist[i][j].expected)
|
||||
);
|
||||
assert_equals(results[j], cplist[i][j].expected);
|
||||
});
|
||||
t.done();
|
||||
}
|
||||
|
|
|
@ -136,10 +136,7 @@ function runNext(id) {
|
|||
for (var j = 0; j < cplist[i].length; j++) {
|
||||
var t = tests[i][j];
|
||||
t.step(function() {
|
||||
assert_equals(
|
||||
normalizeStr(results[j]),
|
||||
normalizeStr(cplist[i][j].expected)
|
||||
);
|
||||
assert_equals(results[j], cplist[i][j].expected);
|
||||
});
|
||||
t.done();
|
||||
}
|
||||
|
|
|
@ -178,10 +178,7 @@ function runNext(id) {
|
|||
for (var j = 0; j < cplist[i].length; j++) {
|
||||
var t = tests[i][j];
|
||||
t.step(function() {
|
||||
assert_equals(
|
||||
normalizeStr(results[j]),
|
||||
normalizeStr(cplist[i][j].expected)
|
||||
);
|
||||
assert_equals(results[j], cplist[i][j].expected);
|
||||
});
|
||||
t.done();
|
||||
}
|
||||
|
|
|
@ -135,10 +135,7 @@ function runNext(id) {
|
|||
for (var j = 0; j < cplist[i].length; j++) {
|
||||
var t = tests[i][j];
|
||||
t.step(function() {
|
||||
assert_equals(
|
||||
normalizeStr(results[j]),
|
||||
normalizeStr(cplist[i][j].expected)
|
||||
);
|
||||
assert_equals(results[j], cplist[i][j].expected);
|
||||
});
|
||||
t.done();
|
||||
}
|
||||
|
|
|
@ -175,10 +175,7 @@ function runNext(id) {
|
|||
for (var j = 0; j < cplist[i].length; j++) {
|
||||
var t = tests[i][j];
|
||||
t.step(function() {
|
||||
assert_equals(
|
||||
normalizeStr(results[j]),
|
||||
normalizeStr(cplist[i][j].expected)
|
||||
);
|
||||
assert_equals(results[j], cplist[i][j].expected);
|
||||
});
|
||||
t.done();
|
||||
}
|
||||
|
|
|
@ -135,10 +135,7 @@ function runNext(id) {
|
|||
for (var j = 0; j < cplist[i].length; j++) {
|
||||
var t = tests[i][j];
|
||||
t.step(function() {
|
||||
assert_equals(
|
||||
normalizeStr(results[j]),
|
||||
normalizeStr(cplist[i][j].expected)
|
||||
);
|
||||
assert_equals(results[j], cplist[i][j].expected);
|
||||
});
|
||||
t.done();
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ function encode(input, expected, desc) {
|
|||
var a = document.createElement("a"); // <a> uses document encoding for URL's query
|
||||
a.href = "https://example.com/?" + input;
|
||||
result = a.search.substr(1); // remove leading "?"
|
||||
assert_equals(normalizeStr(result), normalizeStr(expected));
|
||||
assert_equals(result, expected);
|
||||
}, desc);
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ function encode(input, expected, desc) {
|
|||
var a = document.createElement("a"); // <a> uses document encoding for URL's query
|
||||
a.href = "https://example.com/?" + input;
|
||||
result = a.search.substr(1); // remove leading "?"
|
||||
assert_equals(normalizeStr(result), normalizeStr(expected));
|
||||
assert_equals(result, expected);
|
||||
}, desc);
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ function encode(input, expected, desc) {
|
|||
var a = document.createElement("a"); // <a> uses document encoding for URL's query
|
||||
a.href = "https://example.com/?" + input;
|
||||
result = a.search.substr(1); // remove leading "?"
|
||||
assert_equals(normalizeStr(result), normalizeStr(expected));
|
||||
assert_equals(result, expected);
|
||||
}, desc);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue