Krinkle has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/186112

Change subject: JsonSchemaTest: Update test to not use getHtml that no longer 
exists
......................................................................

JsonSchemaTest: Update test to not use getHtml that no longer exists

Change-Id: I85ce5aaaeb587e59e58520a281a4110fe6aa005d
---
M tests/JsonSchemaTest.php
1 file changed, 8 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EventLogging 
refs/changes/12/186112/1

diff --git a/tests/JsonSchemaTest.php b/tests/JsonSchemaTest.php
index 841dd1d..972d74f 100644
--- a/tests/JsonSchemaTest.php
+++ b/tests/JsonSchemaTest.php
@@ -73,8 +73,13 @@
         * @covers JsonSchemaContent::getHighlightHtml
         */
        function testGetHighlightHtml() {
-               $evil = new JsonSchemaContent( self::EVIL_JSON );
-               $html = $evil->getHtml();
-               $this->assertContains( '<script>', $html, 'HTML output 
should be escaped' );
+               $content = new JsonSchemaContent( self::EVIL_JSON );
+               $out = $content->getParserOutput(
+                       Title::newFromText( 'Test' ),
+                       null,
+                       null,
+                       /* html */ true
+               );
+               $this->assertContains( '<script>', $out->getText(), 'HTML 
output should be escaped' );
        }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/186112
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I85ce5aaaeb587e59e58520a281a4110fe6aa005d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/EventLogging
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to