| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013, Google Inc. All rights reserved. | 2 * Copyright (c) 2013, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 testLinkRelAttribute("stylesheet", true, InvalidIcon, false, false, false, f
alse); | 108 testLinkRelAttribute("stylesheet", true, InvalidIcon, false, false, false, f
alse); |
| 109 testLinkRelAttribute("sTyLeShEeT", true, InvalidIcon, false, false, false, f
alse); | 109 testLinkRelAttribute("sTyLeShEeT", true, InvalidIcon, false, false, false, f
alse); |
| 110 | 110 |
| 111 testLinkRelAttribute("icon", false, Favicon, false, false, false, false); | 111 testLinkRelAttribute("icon", false, Favicon, false, false, false, false); |
| 112 testLinkRelAttribute("iCoN", false, Favicon, false, false, false, false); | 112 testLinkRelAttribute("iCoN", false, Favicon, false, false, false, false); |
| 113 testLinkRelAttribute("shortcut icon", false, Favicon, false, false, false, f
alse); | 113 testLinkRelAttribute("shortcut icon", false, Favicon, false, false, false, f
alse); |
| 114 testLinkRelAttribute("sHoRtCuT iCoN", false, Favicon, false, false, false, f
alse); | 114 testLinkRelAttribute("sHoRtCuT iCoN", false, Favicon, false, false, false, f
alse); |
| 115 | 115 |
| 116 testLinkRelAttribute("dns-prefetch", false, InvalidIcon, false, true, false,
false); | 116 testLinkRelAttribute("dns-prefetch", false, InvalidIcon, false, true, false,
false); |
| 117 testLinkRelAttribute("dNs-pReFeTcH", false, InvalidIcon, false, true, false,
false); | 117 testLinkRelAttribute("dNs-pReFeTcH", false, InvalidIcon, false, true, false,
false); |
| 118 testLinkRelAttribute("alternate dNs-pReFeTcH", false, InvalidIcon, true, tru
e, false, false); |
| 118 | 119 |
| 119 testLinkRelAttribute("apple-touch-icon", false, TouchIcon, false, false, fal
se, false); | 120 testLinkRelAttribute("apple-touch-icon", false, TouchIcon, false, false, fal
se, false); |
| 120 testLinkRelAttribute("aPpLe-tOuCh-IcOn", false, TouchIcon, false, false, fal
se, false); | 121 testLinkRelAttribute("aPpLe-tOuCh-IcOn", false, TouchIcon, false, false, fal
se, false); |
| 121 testLinkRelAttribute("apple-touch-icon-precomposed", false, TouchPrecomposed
Icon, false, false, false, false); | 122 testLinkRelAttribute("apple-touch-icon-precomposed", false, TouchPrecomposed
Icon, false, false, false, false); |
| 122 testLinkRelAttribute("aPpLe-tOuCh-IcOn-pReCoMpOsEd", false, TouchPrecomposed
Icon, false, false, false, false); | 123 testLinkRelAttribute("aPpLe-tOuCh-IcOn-pReCoMpOsEd", false, TouchPrecomposed
Icon, false, false, false, false); |
| 123 | 124 |
| 124 testLinkRelAttribute("alternate stylesheet", true, InvalidIcon, true, false,
false, false); | 125 testLinkRelAttribute("alternate stylesheet", true, InvalidIcon, true, false,
false, false); |
| 125 testLinkRelAttribute("stylesheet alternate", true, InvalidIcon, true, false,
false, false); | 126 testLinkRelAttribute("stylesheet alternate", true, InvalidIcon, true, false,
false, false); |
| 126 testLinkRelAttribute("aLtErNaTe sTyLeShEeT", true, InvalidIcon, true, false,
false, false); | 127 testLinkRelAttribute("aLtErNaTe sTyLeShEeT", true, InvalidIcon, true, false,
false, false); |
| 127 testLinkRelAttribute("sTyLeShEeT aLtErNaTe", true, InvalidIcon, true, false,
false, false); | 128 testLinkRelAttribute("sTyLeShEeT aLtErNaTe", true, InvalidIcon, true, false,
false, false); |
| 128 | 129 |
| 129 testLinkRelAttribute("stylesheet icon prerender aLtErNaTe", true, Favicon, t
rue, false, false, true); | 130 testLinkRelAttribute("stylesheet icon prerender aLtErNaTe", true, Favicon, t
rue, false, false, true); |
| 130 testLinkRelAttribute("alternate subresource", false, InvalidIcon, true, fals
e, true, false); | 131 testLinkRelAttribute("alternate subresource", false, InvalidIcon, true, fals
e, true, false); |
| 131 testLinkRelAttribute("alternate icon stylesheet", true, Favicon, true, false
, false, false); | 132 testLinkRelAttribute("alternate icon stylesheet", true, Favicon, true, false
, false, false); |
| 132 | 133 |
| 133 testLinkRelAttribute("import", false, InvalidIcon, false, false, false, fals
e, true); | 134 testLinkRelAttribute("import", false, InvalidIcon, false, false, false, fals
e, true); |
| 134 // "import" is mutually exclusive and "stylesheet" wins when they conflict. | 135 testLinkRelAttribute("alternate import", false, InvalidIcon, true, false, fa
lse, false, true); |
| 135 testLinkRelAttribute("stylesheet import", true, InvalidIcon, false, false, f
alse, false, false); | 136 testLinkRelAttribute("stylesheet import", true, InvalidIcon, false, false, f
alse, false, false); |
| 136 } | 137 } |
| 137 | 138 |
| 138 } // namespace | 139 } // namespace |
| OLD | NEW |