Bug 996009 - Ensure that the richtext2 browserscope tests do not attempt to contact the external network; r=roc
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 15 Apr 2014 09:32:36 -0400
changeset 197144 7ef793e8acaf50bb4e41d31e6105f81fd3939fbb
parent 197143 67b448ccf9ca12f78ecfc19ae85156cb2b9119d3
child 197145 40f5e8aa29fde19e0356424423049b5176d95d60
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs996009
milestone31.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 996009 - Ensure that the richtext2 browserscope tests do not attempt to contact the external network; r=roc
editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/insert.py
--- a/editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/insert.py
+++ b/editor/libeditor/html/tests/browserscope/lib/richtext2/richtext2/tests/insert.py
@@ -160,55 +160,55 @@ INSERT_TESTS = {
       ]
     },
 
     { 'desc':       'insert <img>',
       'command':    'insertimage',
       'tests':      [
         { 'id':         'IIMG:url_TEXT-1_SC',
           'rte1-id':    'a-insertimage-0',
-          'desc':       'Insert image with URL "http://goo.gl/bar.png"',
-          'value':      'http://goo.gl/bar.png',
+          'desc':       'Insert image with URL "bar.png"',
+          'value':      'bar.png',
           'checkAttrs':  True,
           'pad':        'foo^bar',
-          'expected':   [ 'foo<img src="http://goo.gl/bar.png">|bar',
-                          'foo<img src="http://goo.gl/bar.png">^bar' ] },
+          'expected':   [ 'foo<img src="bar.png">|bar',
+                          'foo<img src="bar.png">^bar' ] },
 
         { 'id':         'IIMG:url_IMG-1_SO',
           'desc':       'Change existing image to new URL, selection on <img>',
-          'value':      'http://baz.com/quz.png',
+          'value':      'quz.png',
           'checkAttrs':  True,
-          'pad':        '<span>foo{<img src="http://goo.gl/bar.png">}bar</span>',
-          'expected':   [ '<span>foo<img src="http://baz.com/quz.png"/>|bar</span>',
-                          '<span>foo<img src="http://baz.com/quz.png"/>^bar</span>' ] },
+          'pad':        '<span>foo{<img src="bar.png">}bar</span>',
+          'expected':   [ '<span>foo<img src="quz.png"/>|bar</span>',
+                          '<span>foo<img src="quz.png"/>^bar</span>' ] },
 
         { 'id':         'IIMG:url_SPAN-IMG-1_SO',
           'desc':       'Change existing image to new URL, selection in text surrounding <img>',
-          'value':      'http://baz.com/quz.png',
+          'value':      'quz.png',
           'checkAttrs':  True,
-          'pad':        'foo[<img src="http://goo.gl/bar.png">]bar',
-          'expected':   [ 'foo<img src="http://baz.com/quz.png"/>|bar',
-                          'foo<img src="http://baz.com/quz.png"/>^bar' ] },
+          'pad':        'foo[<img src="bar.png">]bar',
+          'expected':   [ 'foo<img src="quz.png"/>|bar',
+                          'foo<img src="quz.png"/>^bar' ] },
 
         { 'id':         'IIMG:._SPAN-IMG-1_SO',
           'desc':       'Remove existing image or URL, selection on <img>',
           'value':      '',
           'checkAttrs':  True,
-          'pad':        '<span>foo{<img src="http://goo.gl/bar.png">}bar</span>',
+          'pad':        '<span>foo{<img src="bar.png">}bar</span>',
           'expected':   [ '<span>foo^bar</span>',
                           '<span>foo<img>|bar</span>',
                           '<span>foo<img>^bar</span>',
                           '<span>foo<img src="">|bar</span>',
                           '<span>foo<img src="">^bar</span>' ] },
 
         { 'id':         'IIMG:._IMG-1_SO',
           'desc':       'Remove existing image or URL, selection in text surrounding <img>',
           'value':      '',
           'checkAttrs':  True,
-          'pad':        'foo[<img src="http://goo.gl/bar.png">]bar',
+          'pad':        'foo[<img src="bar.png">]bar',
           'expected':   [ 'foo^bar',
                           'foo<img>|bar',
                           'foo<img>^bar',
                           'foo<img src="">|bar',
                           'foo<img src="">^bar' ] }
       ]
     },