Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/fontfaceset-set-operations-expected.txt

Issue 1409433003: CSS Font Loading: make FontFaceSet Setlike (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert forEach behavior (that makes it easy!) Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 Tests Set operations of FontFaceSet. 1 Tests Set operations of FontFaceSet.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS document.fonts.size is 3 6 PASS document.fonts.size is 3
7 check forEach
8 PASS callbackArgs[0] is an instance of FontFace
7 PASS callbackArgs[0] === callbackArgs[1] is true 9 PASS callbackArgs[0] === callbackArgs[1] is true
8 PASS callbackArgs[2] === document.fonts is true 10 PASS callbackArgs[2] === document.fonts is true
9 PASS thisValue === thisArg is true 11 PASS thisValue === thisArg is true
10 PASS faces.length is 3 12 PASS faces.length is 3
11 PASS faces[0].family is "Font1" 13 PASS faces[0].family is "Font1"
12 PASS faces[1].family is "Font2" 14 PASS faces[1].family is "Font2"
13 PASS faces[2].family is "Font3" 15 PASS faces[2].family is "Font3"
14 PASS document.fonts.has(faces[0]) is true 16 PASS document.fonts.has(faces[0]) is true
15 PASS document.fonts.has(faces[1]) is true 17 PASS document.fonts.has(faces[1]) is true
16 PASS document.fonts.has(faces[2]) is true 18 PASS document.fonts.has(faces[2]) is true
17 PASS document.fonts.has(nonCssConnectedFace) is false 19 PASS document.fonts.has(nonCssConnectedFace) is false
18 PASS document.fonts.has("Font1") threw exception TypeError: Failed to execute 'h as' on 'FontFaceSet': The argument is not a FontFace.. 20 PASS document.fonts.has("Font1") threw exception TypeError: Failed to execute 'h as' on 'FontFaceSet': The argument is not a FontFace..
19 PASS document.fonts.add(faces[0]) threw exception InvalidModificationError: Fail ed to execute 'add' on 'FontFaceSet': Cannot add a CSS-connected FontFace.. 21 PASS document.fonts.add(faces[0]) threw exception InvalidModificationError: Fail ed to execute 'add' on 'FontFaceSet': Cannot add a CSS-connected FontFace..
20 PASS document.fonts.delete(faces[0]) threw exception InvalidModificationError: F ailed to execute 'delete' on 'FontFaceSet': Cannot delete a CSS-connected FontFa ce.. 22 PASS document.fonts.delete(faces[0]) threw exception InvalidModificationError: F ailed to execute 'delete' on 'FontFaceSet': Cannot delete a CSS-connected FontFa ce..
23 check keys
24 PASS faces.length is 3
25 PASS faces[0].family is "Font1"
26 PASS faces[1].family is "Font2"
27 PASS faces[2].family is "Font3"
28 PASS document.fonts.has(faces[0]) is true
29 PASS document.fonts.has(faces[1]) is true
30 PASS document.fonts.has(faces[2]) is true
31 PASS document.fonts.has(nonCssConnectedFace) is false
32 PASS document.fonts.has("Font1") threw exception TypeError: Failed to execute 'h as' on 'FontFaceSet': The argument is not a FontFace..
33 PASS document.fonts.add(faces[0]) threw exception InvalidModificationError: Fail ed to execute 'add' on 'FontFaceSet': Cannot add a CSS-connected FontFace..
34 PASS document.fonts.delete(faces[0]) threw exception InvalidModificationError: F ailed to execute 'delete' on 'FontFaceSet': Cannot delete a CSS-connected FontFa ce..
35 check values
36 PASS faces.length is 3
37 PASS faces[0].family is "Font1"
38 PASS faces[1].family is "Font2"
39 PASS faces[2].family is "Font3"
40 PASS document.fonts.has(faces[0]) is true
41 PASS document.fonts.has(faces[1]) is true
42 PASS document.fonts.has(faces[2]) is true
43 PASS document.fonts.has(nonCssConnectedFace) is false
44 PASS document.fonts.has("Font1") threw exception TypeError: Failed to execute 'h as' on 'FontFaceSet': The argument is not a FontFace..
45 PASS document.fonts.add(faces[0]) threw exception InvalidModificationError: Fail ed to execute 'add' on 'FontFaceSet': Cannot add a CSS-connected FontFace..
46 PASS document.fonts.delete(faces[0]) threw exception InvalidModificationError: F ailed to execute 'delete' on 'FontFaceSet': Cannot delete a CSS-connected FontFa ce..
47 check entries
48 PASS entry[0] === entry[1] is true
49 PASS entry[0] === entry[1] is true
50 PASS entry[0] === entry[1] is true
51 PASS faces.length is 3
52 PASS faces[0].family is "Font1"
53 PASS faces[1].family is "Font2"
54 PASS faces[2].family is "Font3"
55 PASS document.fonts.has(faces[0]) is true
56 PASS document.fonts.has(faces[1]) is true
57 PASS document.fonts.has(faces[2]) is true
58 PASS document.fonts.has(nonCssConnectedFace) is false
59 PASS document.fonts.has("Font1") threw exception TypeError: Failed to execute 'h as' on 'FontFaceSet': The argument is not a FontFace..
60 PASS document.fonts.add(faces[0]) threw exception InvalidModificationError: Fail ed to execute 'add' on 'FontFaceSet': Cannot add a CSS-connected FontFace..
61 PASS document.fonts.delete(faces[0]) threw exception InvalidModificationError: F ailed to execute 'delete' on 'FontFaceSet': Cannot delete a CSS-connected FontFa ce..
21 PASS document.fonts.size is 4 62 PASS document.fonts.size is 4
22 PASS document.fonts.has(nonCssConnectedFace) is true 63 PASS document.fonts.has(nonCssConnectedFace) is true
23 PASS document.fonts.size is 4 64 PASS document.fonts.size is 4
24 PASS document.fonts.size is 3 65 PASS document.fonts.size is 3
25 PASS document.fonts.has(nonCssConnectedFace) is false 66 PASS document.fonts.has(nonCssConnectedFace) is false
26 PASS document.fonts.size is 3 67 PASS document.fonts.size is 3
27 PASS document.fonts.size is 4 68 PASS document.fonts.size is 4
28 PASS document.fonts.size is 3 69 PASS document.fonts.size is 3
29 PASS successfullyParsed is true 70 PASS successfullyParsed is true
30 71
31 TEST COMPLETE 72 TEST COMPLETE
32 73
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698