Skip to content

Commit

Permalink
Commit adjusted clipboard test
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Nov 18, 2020
1 parent d01c420 commit 0016027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe("Clipboard interface", () => {
let d = doc(blockquote(ul(li(p("fo<a>o"), p("b<b>ar")))))
let view = tempEditor({doc: d})
let slice = TextSelection.create(d, d.tag.a, d.tag.b).content(), {dom, text} = serializeForClipboard(view, slice)
ist(dom.innerHTML, '<li data-pm-slice="2 2 [&quot;blockquote&quot;,null,&quot;bullet_list&quot;,null]"><p>o</p><p>b</p></li>')
ist(dom.innerHTML, '<li data-pm-slice="2 2 [&quot;blockquote&quot;,{},&quot;bullet_list&quot;,{}]"><p>o</p><p>b</p></li>')
ist(parseFromClipboard(view, text, dom.innerHTML, false, d.resolve(1)), d.slice(d.tag.a, d.tag.b, true), eq)
ist(parseFromClipboard(view, text, dom.innerHTML, true, d.resolve(1)), new Slice(doc(p("o"), p("b")).content, 1, 1), eq)
})
Expand Down

0 comments on commit 0016027

Please sign in to comment.