You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.ok(inserted.innerHTML.indexOf('>content</')===inserted.innerHTML.lastIndexOf('>content</'),`Original content should not be duplicated: ${outputElement.innerHTML}`);
assert.ok(firstOutputElement.innerHTML.indexOf('>first stream content')>-1,`Content was not added to output element: ${outputHtml.cellElement.innerHTML}`);
235
+
assert.ok(firstOutputElement.innerHTML.indexOf('appended1')>-1,`Content was not appended to output element: ${outputHtml.cellElement.innerHTML}`);
236
+
assert.ok(secondOutputElement.innerHTML.indexOf('>NameError</')>-1,`Content was not added to output element: ${outputHtml.cellElement.innerHTML}`);
237
+
assert.ok(thirdOutputElement.innerHTML.indexOf('>second stream content')>-1,`Content was not added to output element: ${outputHtml.cellElement.innerHTML}`);
238
+
assert.ok(thirdOutputElement.innerHTML.indexOf('appended3')>-1,`Content was not appended to output element: ${outputHtml.cellElement.innerHTML}`);
assert.ok(inserted.innerHTML.indexOf('>second stream content</')===-1,`Content was not replaced in output element: ${outputHtml.cellElement.innerHTML}`);
325
353
});
326
354
355
+
test(`Consolidated streaming outputs should append matching outputs correctly`,async()=>{
assert.ok(inserted,`nothing appended to output element: ${outputElement.innerHTML}`);
373
+
assert.ok(inserted.innerHTML.indexOf('>first stream content</')>-1,`Content was not added to output element: ${outputHtml.cellElement.innerHTML}`);
374
+
assert.ok(inserted.innerHTML.indexOf('>second stream content')>-1,`Second content was not added to ouptut element: ${outputHtml.cellElement.innerHTML}`);
375
+
assert.ok(inserted.innerHTML.indexOf('appended')>-1,`Content was not appended to ouptut element: ${outputHtml.cellElement.innerHTML}`);
376
+
});
377
+
327
378
test(`Streaming outputs interleaved with other mime types will produce separate outputs`,async()=>{
0 commit comments