Use goog.html.testing instead of legacy conversions in test

Tested:
    TAP --sample for global presubmit queue
    []    dr-foss-test passes

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=225189790
This commit is contained in:
jakubvrana 2018-12-12 08:25:49 -08:00 committed by jianglai
parent 015c854a92
commit 4146e69d60

View file

@ -21,7 +21,7 @@ goog.require('goog.dom.classlist');
goog.require('goog.dom.xml');
goog.require('goog.events.EventType');
goog.require('goog.format.JsonPrettyPrinter');
goog.require('goog.html.legacyconversions');
goog.require('goog.html.testing');
goog.require('goog.json');
goog.require('goog.testing.asserts');
goog.require('goog.testing.events');
@ -36,7 +36,7 @@ goog.require('goog.testing.net.XhrIo');
registry.testing.addToDocument = function(html) {
goog.global.document.body.appendChild(
goog.dom.safeHtmlToNode(
goog.html.legacyconversions.safeHtmlFromString(html)));
goog.html.testing.newSafeHtmlForTest(html)));
};