From 4146e69d6055587e74705ffcc44915f43e3d0b30 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Wed, 12 Dec 2018 08:25:49 -0800 Subject: [PATCH] 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 --- javatests/google/registry/ui/js/testing.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javatests/google/registry/ui/js/testing.js b/javatests/google/registry/ui/js/testing.js index 8d89987dd..2a77ad8e9 100644 --- a/javatests/google/registry/ui/js/testing.js +++ b/javatests/google/registry/ui/js/testing.js @@ -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))); };