Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / loading / dont-preload-non-img-srcset.html
blob7560874c3d9205e6a2211472eb8ac878dcc9ffdf
1 <html>
2 <head>
3 <script src="/js-test-resources/js-test.js"></script>
4 <script>
5 window.targetScaleFactor = 1;
6 </script>
7 <script src="../resources/srcset-helper.js"></script>
8 <script src="http://127.0.0.1:8000/resources/slow-script.pl?delay=100"></script>
9 </head>
10 <body>
11 <script>
12 shouldBeTrue("internals.isPreloaded('resources/base-image1.png');");
13 shouldBeFalse("internals.isPreloaded('resources/empty.html');");
14 shouldBeFalse("internals.isPreloaded('resources/empty.js');");
15 </script>
16 <div>This test passes if the image is preloaded, but none of the non-img elements with a srcset attribute is.</div>
17 <img height="100" width="100" src="resources/preload-test.jpg" srcset="resources/base-image1.png 1x, resources/base-image3.png 3x, resources/base-image2.png 2x"></img>
18 <iframe srcset="resources/empty.html"></iframe>
19 <script srcset="resources/empty.js"></script>
20 </body>
21 </html>