Skip to content

Commit

Permalink
https URLs for placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
mixonic committed Feb 8, 2016
1 parent bd4093a commit 1d2b96d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion demo/app/mobiledoc-atoms/dom/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
render() {
const element = document.createElement("img");
element.style.display = 'inline';
element.src = 'http://placehold.it/30x20';
element.src = 'https://placehold.it/30x20';
return element;
}
};
4 changes: 2 additions & 2 deletions tests/fixtures/google-docs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions tests/unit/parsers/section-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ test('#parse turns a textNode into a section', (assert) => {

test('#parse allows passing in parserPlugins that can override element parsing', (assert) => {
let container = buildDOM(`
<p>text 1<img src="http://placehold.it/100x100">text 2</p>
<p>text 1<img src="https://placehold.it/100x100">text 2</p>
`);

let element = container.firstChild;
Expand All @@ -128,12 +128,12 @@ test('#parse allows passing in parserPlugins that can override element parsing',

let cardSection = sections[1];
assert.equal(cardSection.name, 'test-image');
assert.deepEqual(cardSection.payload, {url: 'http://placehold.it/100x100'});
assert.deepEqual(cardSection.payload, {url: 'https://placehold.it/100x100'});
});

test('#parse allows passing in parserPlugins that can override text parsing', (assert) => {
let container = buildDOM(`
<p>text 1<img src="http://placehold.it/100x100">text 2</p>
<p>text 1<img src="https://placehold.it/100x100">text 2</p>
`);

let element = container.firstChild;
Expand Down

0 comments on commit 1d2b96d

Please sign in to comment.