1 Tests Set operations of FontFaceSet.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS document.fonts.size is 3
7 PASS callbackArgs[0] === callbackArgs[1] is true
8 PASS callbackArgs[2] === document.fonts is true
9 PASS thisValue === thisArg is true
10 PASS faces.length is 3
11 PASS faces[0].family is "Font1"
12 PASS faces[1].family is "Font2"
13 PASS faces[2].family is "Font3"
14 PASS document.fonts.has(faces[0]) is true
15 PASS document.fonts.has(faces[1]) is true
16 PASS document.fonts.has(faces[2]) is true
17 PASS document.fonts.has(nonCssConnectedFace) is false
18 PASS document.fonts.has("Font1") threw exception TypeError: Failed to execute 'has' on 'FontFaceSet': The argument is not a FontFace..
19 PASS document.fonts.add(faces[0]) threw exception InvalidModificationError: Failed to execute 'add' on 'FontFaceSet': Cannot add a CSS-connected FontFace..
20 PASS document.fonts.delete(faces[0]) threw exception InvalidModificationError: Failed to execute 'delete' on 'FontFaceSet': Cannot delete a CSS-connected FontFace..
21 PASS document.fonts.size is 4
22 PASS document.fonts.has(nonCssConnectedFace) is true
23 PASS document.fonts.size is 4
24 PASS document.fonts.size is 3
25 PASS document.fonts.has(nonCssConnectedFace) is false
26 PASS document.fonts.size is 3
27 PASS document.fonts.size is 4
28 PASS document.fonts.size is 3
29 PASS successfullyParsed is true