| OLD | NEW |
| 1 description("Test reflecting URL attributes with empty string values."); | 1 description("Test reflecting URL attributes with empty string values."); |
| 2 | 2 |
| 3 function testURLReflection(attributeName, tag, scriptAttributeName) | 3 function testURLReflection(attributeName, tag, scriptAttributeName) |
| 4 { | 4 { |
| 5 if (!scriptAttributeName) | 5 if (!scriptAttributeName) |
| 6 scriptAttributeName = attributeName.toLowerCase(); | 6 scriptAttributeName = attributeName.toLowerCase(); |
| 7 | 7 |
| 8 var element; | 8 var element; |
| 9 if (tag === "html") | 9 if (tag === "html") |
| 10 element = document.documentElement; | 10 element = document.documentElement; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 shouldBe("testURLReflection('cite', 'ins')", "'URL'"); | 44 shouldBe("testURLReflection('cite', 'ins')", "'URL'"); |
| 45 shouldBe("testURLReflection('cite', 'q')", "'URL'"); | 45 shouldBe("testURLReflection('cite', 'q')", "'URL'"); |
| 46 shouldBe("testURLReflection('data', 'object')", "'URL'"); | 46 shouldBe("testURLReflection('data', 'object')", "'URL'"); |
| 47 shouldBe("testURLReflection('formaction', 'button')", "'URL'"); | 47 shouldBe("testURLReflection('formaction', 'button')", "'URL'"); |
| 48 shouldBe("testURLReflection('formaction', 'input')", "'URL'"); | 48 shouldBe("testURLReflection('formaction', 'input')", "'URL'"); |
| 49 shouldBe("testURLReflection('href', 'a')", "'URL'"); | 49 shouldBe("testURLReflection('href', 'a')", "'URL'"); |
| 50 shouldBe("testURLReflection('href', 'area')", "'URL'"); | 50 shouldBe("testURLReflection('href', 'area')", "'URL'"); |
| 51 shouldBe("testURLReflection('href', 'link')", "'URL'"); | 51 shouldBe("testURLReflection('href', 'link')", "'URL'"); |
| 52 shouldBe("testURLReflection('href', 'base')", "'URL'"); | 52 shouldBe("testURLReflection('href', 'base')", "'URL'"); |
| 53 shouldBe("testURLReflection('icon', 'command')", "'URL'"); | 53 shouldBe("testURLReflection('icon', 'command')", "'URL'"); |
| 54 shouldBe("testURLReflection('manifest', 'html')", "'URL'"); | |
| 55 shouldBe("testURLReflection('poster', 'video')", "'URL'"); | 54 shouldBe("testURLReflection('poster', 'video')", "'URL'"); |
| 56 shouldBe("testURLReflection('src', 'audio')", "'URL'"); | 55 shouldBe("testURLReflection('src', 'audio')", "'URL'"); |
| 57 shouldBe("testURLReflection('src', 'embed')", "'URL'"); | 56 shouldBe("testURLReflection('src', 'embed')", "'URL'"); |
| 58 shouldBe("testURLReflection('src', 'iframe')", "'URL'"); | 57 shouldBe("testURLReflection('src', 'iframe')", "'URL'"); |
| 59 shouldBe("testURLReflection('src', 'img')", "'URL'"); | 58 shouldBe("testURLReflection('src', 'img')", "'URL'"); |
| 60 shouldBe("testURLReflection('src', 'input')", "'URL'"); | 59 shouldBe("testURLReflection('src', 'input')", "'URL'"); |
| 61 shouldBe("testURLReflection('src', 'script')", "'URL'"); | 60 shouldBe("testURLReflection('src', 'script')", "'URL'"); |
| 62 shouldBe("testURLReflection('src', 'source')", "'URL'"); | 61 shouldBe("testURLReflection('src', 'source')", "'URL'"); |
| 63 shouldBe("testURLReflection('src', 'video')", "'URL'"); | 62 shouldBe("testURLReflection('src', 'video')", "'URL'"); |
| 64 | 63 |
| 65 // Other reflected URL attributes. | 64 // Other reflected URL attributes. |
| 66 | 65 |
| 67 shouldBe("testURLReflection('longDesc', 'img')", "'URL'"); | 66 shouldBe("testURLReflection('longDesc', 'img')", "'URL'"); |
| 68 shouldBe("testURLReflection('lowsrc', 'img')", "'URL'"); | 67 shouldBe("testURLReflection('lowsrc', 'img')", "'URL'"); |
| OLD | NEW |