mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Update web-platform-tests to revision eaf583ff9cfe4ce36b517ae3519e114948ba10c3
This commit is contained in:
parent
f7fb130a2a
commit
62c1fc904a
35 changed files with 157 additions and 134 deletions
|
@ -59,11 +59,11 @@ function toByteArray(data) {
|
|||
function compareNDEFRecords(providedRecord, receivedRecord) {
|
||||
assert_equals(providedRecord.recordType, receivedRecord.recordType);
|
||||
|
||||
// Compares media types without charset.
|
||||
// Charset should be compared when watch method is implemented, in order
|
||||
// to check that written and read strings are equal.
|
||||
assert_equals(providedRecord.mediaType,
|
||||
receivedRecord.mediaType.substring(0, providedRecord.mediaType.length));
|
||||
if (providedRecord.mediaType === undefined) {
|
||||
assert_equals(null, receivedRecord.mediaType);
|
||||
} else {
|
||||
assert_equals(providedRecord.mediaType, receivedRecord.mediaType);
|
||||
}
|
||||
|
||||
assert_not_equals(providedRecord.recordType, 'empty');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue