Skip to content

Commit

Permalink
Country Content: Update tests and demos
Browse files Browse the repository at this point in the history
The country code is not appended as a class, but was had a test that had
that assumption. Updated the demos to clarify this.
  • Loading branch information
nschonni authored and LaurentGoderre committed Jul 8, 2014
1 parent f73172d commit f8e4bef
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html -->
<!-- DataAjaxFragmentStart -->
<section class="ajaxed-in ca">
<section class="ajaxed-in">
<h4>Hello Canada</h4>
<p>I'm the content that is shown when the user visits from Canada.</p>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html -->
<!-- DataAjaxFragmentStart -->
<section class="ajaxed-in ca">
<section class="ajaxed-in">
<h4>Bonjour Canada</h4>
<p>Je suis le contenu qui est affiché lorsque l'utilisateur visite du Canada.</p>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html -->
<!-- DataAjaxFragmentStart -->
<section class="ajaxed-in us">
<section class="ajaxed-in">
<h4>Hello United States</h4>
<p>I'm the content that is shown when the user visits from the United States.</p>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html -->
<!-- DataAjaxFragmentStart -->
<section class="ajaxed-in us">
<section class="ajaxed-in">
<h4>Bonjour Etats-Unis</h4>
<p>Je suis le contenu qui est affiché lorsque l'utilisateur visite des États-Unis.</p>
</section>
Expand Down
4 changes: 0 additions & 4 deletions src/plugins/country-content/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@ describe( "Country Content test suite", function() {
$elm.remove();
});

it( "should have loaded the US content", function() {
expect( $elm.find( ".ajaxed-in" ).hasClass( "us" ) ).to.equal( true );
});

it( "should have saved the country code", function() {
expect( localStorage.getItem( "countryCode" ) ).to.equal( "US" );
});
Expand Down

0 comments on commit f8e4bef

Please sign in to comment.