Bug 1385240 - Update editor/libeditor/tests/test_bug635636.html to comply with new data: URI inheritance model. r=masayuki
authorChristoph Kerschbaumer <ckerschb@christophkerschbaumer.com>
Fri, 28 Jul 2017 13:34:24 +0200
changeset 422828 4de88c868d39d9da24acb8836d0b8e45a4457b4c
parent 422827 b5d83e1d3a96995d3bb0dba9785623716c5a3d90
child 422829 ee929726e09380236f2c8c5ba8eabc120c8a8cfd
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmasayuki
bugs1385240, 635636
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1385240 - Update editor/libeditor/tests/test_bug635636.html to comply with new data: URI inheritance model. r=masayuki
editor/libeditor/tests/file_bug635636.xhtml
editor/libeditor/tests/mochitest.ini
editor/libeditor/tests/test_bug635636.html
new file mode 100644
--- /dev/null
+++ b/editor/libeditor/tests/file_bug635636.xhtml
@@ -0,0 +1,3 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<div>1</div>
+</html>
--- a/editor/libeditor/tests/mochitest.ini
+++ b/editor/libeditor/tests/mochitest.ini
@@ -4,16 +4,17 @@ support-files =
   data/cfhtml-firefox.txt
   data/cfhtml-ie.txt
   data/cfhtml-ooo.txt
   data/cfhtml-nocontext.txt
   file_bug549262.html
   file_bug586662.html
   file_bug611182.html
   file_bug611182.sjs
+  file_bug635636.xhtml
   file_bug674770-1.html
   file_bug795418-2.sjs
   file_bug915962.html
   file_select_all_without_body.html
   green.png
   spellcheck.js
 
 [test_bug46555.html]
--- a/editor/libeditor/tests/test_bug635636.html
+++ b/editor/libeditor/tests/test_bug635636.html
@@ -19,17 +19,17 @@ https://bugzilla.mozilla.org/show_bug.cg
 
 /** Test for Bug 635636 **/
 SimpleTest.waitForExplicitFinish();
 addLoadEvent(function() {
   var w, d;
 
   function b1()
   {
-    w = window.open('data:application/xhtml+xml,<html xmlns="http://www.w3.org/1999/xhtml"><div>1</div></html>');
+    w = window.open('file_bug635636.xhtml');
     SimpleTest.waitForFocus(b2, w);
   }
 
   function b2()
   {
     w.document.designMode = 'on';
     w.location = "data:text/plain,2";
     d = w.document.getElementsByTagName("div")[0];