From 0de2b06621eb4606db6aead960c42f65b582c02f Mon Sep 17 00:00:00 2001 From: jianglai Date: Mon, 18 Sep 2017 09:04:00 -0700 Subject: [PATCH] Fix foss build When the domain-contact-postalInfos-footer was self-closed, the resulting contact-postalInfo element improperly included the following hidden input tag. Now that the tag is properly closed, the number of elements in contact-postalInfo should be reduced by 1 (the currently expected numbers are wrong and supposedly were there to have the tests pass). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=169096690 --- javatests/google/registry/ui/js/registrar/contact_test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javatests/google/registry/ui/js/registrar/contact_test.js b/javatests/google/registry/ui/js/registrar/contact_test.js index 71299581b..8757511dd 100644 --- a/javatests/google/registry/ui/js/registrar/contact_test.js +++ b/javatests/google/registry/ui/js/registrar/contact_test.js @@ -110,7 +110,7 @@ function testVisitContact() { ' ' + '' }); - assertEquals(3, $('contact-postalInfo').childNodes.length); + assertEquals(2, $('contact-postalInfo').childNodes.length); } @@ -131,5 +131,5 @@ function testAddPostalInfo() { assertNull(addPiBtn.getAttribute('disabled')); registry.testing.click(addPiBtn); assertTrue(addPiBtn.hasAttribute('disabled')); - assertEquals(4, $('contact-postalInfo').childNodes.length); + assertEquals(3, $('contact-postalInfo').childNodes.length); }