From a114e64fd703eaeec1314650b65f6590aafafdb8 Mon Sep 17 00:00:00 2001 From: Andres Rey Date: Wed, 8 Nov 2017 20:32:33 +0000 Subject: Fix test cases for the new code --- test/test-pages/webmd-1/source.html | 312 ++++++++++++++++++------------------ 1 file changed, 156 insertions(+), 156 deletions(-) (limited to 'test/test-pages/webmd-1/source.html') diff --git a/test/test-pages/webmd-1/source.html b/test/test-pages/webmd-1/source.html index 79cc6f5..0b50ccc 100644 --- a/test/test-pages/webmd-1/source.html +++ b/test/test-pages/webmd-1/source.html @@ -1,6 +1,6 @@ - + Babies Who Eat Peanuts Early May Avoid Allergy @@ -63,7 +63,7 @@ - +
@@ -115,7 +115,7 @@
    Symptoms| + href="http://www.webmd.com/symptoms/default.htm">Symptoms| Doctors| @@ -380,7 +380,7 @@
    @@ -408,7 +408,7 @@ @@ -1178,27 +1178,27 @@
    @@ -1803,7 +1803,7 @@ #allergyappsmsemailgen90 .pane h2 { font-family: 'Lato', sans-serif; } - + #allergyappsmsemailgen90 *, #allergyappsmsemailgen90 *:before, #allergyappsmsemailgen90 *:after { @@ -2033,36 +2033,36 @@ module.init({ selector: "#newsletter-mapping-center", template: { - successMsg: '

    {email}
    You will receive your first newsletter with our next scheduled circulation!

    ', + successMsg: '<p class="success"><span>{email}</span><br //>You will receive your first newsletter with our next scheduled circulation!</p>', content: '' + - '
    \n' + - '
    \n' + - '
    {header}
    \n' + + '<div class="newsletterFmt"></div>\n' + + '<div class="wrapper">\n' + + '<div class="nls-header">{header}</div>\n' + '{preContent}' + - '
    \n' + + '<div class="nls-content">\n' + '{preForm}' + - '
    \n' + - '
    {inputs}
    \n' + - '
    ' + - '
    \n' + - '\n' + // .email-container - '
    \n' + // .input-container - '
    \n' + - 'Sign up for more topics!' + + '<form class="nls-form" action="#" novalidate="novalidate">\n' + + '<div class="validationWrapper"><div class="checkbox-container clearfix">{inputs}</div></div>\n' + + '<div class="privacy-disclaimer">' + + "<em>By clicking submit I agree to WebMD's <a href='http://www.webmd.com/about-webmd-policies/about-privacy-policy' target='_blank'>Privacy Policy</a></em>" + + '</div>' + + '<div class="input-container">\n' + + '<div class="email-container validationWrapper">\n' + + '<input type="email" class="nls-email" name="email" autocapitalize="off" autocorrect="off" placeholder="Enter email address" /> ' + + '<button name="nl-submit" formnovalidate class="off {submitClass}" type="submit"><span>Submit</span></button>\n' + + '<div class="clearfix"></div>' + + '</div>\n' + // .email-container + '</div>\n' + // .input-container + '</form>\n' + + '<a class="nl-link" href="https://member.webmd.com/newsletters/newsletters.aspx" onclick="return sl(this,"nw","nl-multie_s")">Sign up for more topics!</a>' + '{postForm}' + - '
    \n' + // .nls-content - '{postContent}' + - '
    ', + '</div>\n' + // .nls-content + '{postContent}' + + '</div>', submitClass: 'webmd-btn webmd-btn-pr webmd-btn-s', - successHeader: '

    Thank You For Signing Up.

    ', - promo: '
    WebMD App

    {text}

    ' - + successHeader: '<h2>Thank You For Signing Up.</h2>', + promo: '<div class="promo"><div class="promo-content clearfix"><img src="{image}" alt="WebMD App" /><div class="promo-description"><p>{text}</p><p class="promoLink"><a href="{url}" class="webmd-btn webmd-btn-pr webmd-btn-m" onclick="wmdPageLink(\'nlupgrd_sub\')">{button}</a></p><div class="clearfix"></div></div></div></div>' + } }); }); @@ -2111,7 +2111,7 @@ (function(){ var module_title = 'hicb f-hs'; var propIsSet = false; - + $(document).bind('before_pv', function(){ if (!propIsSet) { if (s_md.prop46) { @@ -2261,12 +2261,12 @@
    @@ -2282,32 +2282,32 @@ href="http://www.webmd.com/www/about-webmd-policies/about-our-sponsors?ss=ftr" onclick="return sl(this,'','f-about_04');">Sponsor Policy Site Map Careers + href="https://careers-webmd.icims.com/" onclick="return sl(this,'','f-about_07')">Careers Contact Us -