Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / html / imports / import-mode-quirks.html
1 <html>
2 <head>
3 <script src="../../../resources/testharness.js"></script>
4 <script src="../../../resources/testharnessreport.js"></script>
5 <link rel="import" id=withDTD href="resources/hello.html">
6 <link rel="import" id=noDTD href="resources/hello-nodtd.html">
7 <link rel="import" id=legacyDTD href="resources/hello-legacy.html">
8 </head>
9 <body>
10 <script>
11 test(function(){
12   assert_equals(document.compatMode, "BackCompat");
13   assert_equals(withDTD.import.compatMode, "CSS1Compat");
14   assert_equals(noDTD.import.compatMode, "CSS1Compat");
15   assert_equals(legacyDTD.import.compatMode, "CSS1Compat");
16 }, "Each HTML Import is standard mode regardless of the mode of the master document.");
17 </script>
18 </body>
19 </html>