2 ++ Test default attribute value
3 EXPECTED (video.preload == 'auto') OK
4 EXPECTED (video.getAttribute('preload') == 'null') OK
6 ++ Remove attribute, should revert to default
7 RUN(video.removeAttribute('preload'))
8 EXPECTED (video.preload == 'auto') OK
12 RUN(video.removeAttribute('preload'))
13 RUN(video.preload = 'none')
14 EXPECTED (video.getAttribute('preload') == 'none') OK
15 EXPECTED (video.preload == 'none') OK
17 RUN(video.removeAttribute('preload'))
18 RUN(video.setAttribute('preload', 'none'))
19 EXPECTED (video.preload == 'none') OK
20 EXPECTED (video.getAttribute('preload') == 'none') OK
24 RUN(video.removeAttribute('preload'))
25 RUN(video.preload = 'auto')
26 EXPECTED (video.getAttribute('preload') == 'auto') OK
27 EXPECTED (video.preload == 'auto') OK
29 RUN(video.removeAttribute('preload'))
30 RUN(video.setAttribute('preload', 'auto'))
31 EXPECTED (video.preload == 'auto') OK
32 EXPECTED (video.getAttribute('preload') == 'auto') OK
34 ++ set to bogus value, should revert to default value
35 RUN(video.removeAttribute('preload'))
37 RUN(video.preload = 'bogus')
38 EXPECTED (video.getAttribute('preload') == 'bogus') OK
39 EXPECTED (video.preload == 'auto') OK
41 RUN(video.setAttribute('preload', 'bogus'))
42 EXPECTED (video.preload == 'auto') OK
43 EXPECTED (video.getAttribute('preload') == 'bogus') OK
47 RUN(video.removeAttribute('preload'))
48 RUN(video.preload = 'metadata')
49 EXPECTED (video.getAttribute('preload') == 'metadata') OK
50 EXPECTED (video.preload == 'metadata') OK
52 RUN(video.removeAttribute('preload'))
53 RUN(video.setAttribute('preload', 'metadata'))
54 EXPECTED (video.preload == 'metadata') OK
55 EXPECTED (video.getAttribute('preload') == 'metadata') OK