From b2a1b13d59a4d584d3f4cade594548bc417838dd Mon Sep 17 00:00:00 2001 From: Julian Descottes Date: Wed, 18 Jan 2017 17:42:04 +0100 Subject: [PATCH] migrate reps tests to use load-reps --- src/reps/rep.js | 1 + src/test/mochitest/test_reps_array.html | 5 ++--- src/test/mochitest/test_reps_attribute.html | 4 ++-- src/test/mochitest/test_reps_comment-node.html | 5 ++--- src/test/mochitest/test_reps_date-time.html | 4 ++-- src/test/mochitest/test_reps_document.html | 4 ++-- src/test/mochitest/test_reps_element-node.html | 5 ++--- src/test/mochitest/test_reps_error.html | 5 ++--- src/test/mochitest/test_reps_event.html | 5 ++--- src/test/mochitest/test_reps_failure.html | 5 ++--- src/test/mochitest/test_reps_function.html | 4 ++-- src/test/mochitest/test_reps_grip-array.html | 5 ++--- src/test/mochitest/test_reps_grip-map.html | 5 ++--- src/test/mochitest/test_reps_grip.html | 5 ++--- src/test/mochitest/test_reps_infinity.html | 4 ++-- src/test/mochitest/test_reps_long-string.html | 4 ++-- src/test/mochitest/test_reps_nan.html | 4 ++-- src/test/mochitest/test_reps_null.html | 4 ++-- src/test/mochitest/test_reps_number.html | 4 ++-- src/test/mochitest/test_reps_object-with-text.html | 4 ++-- src/test/mochitest/test_reps_object-with-url.html | 5 +++-- src/test/mochitest/test_reps_object.html | 5 ++--- src/test/mochitest/test_reps_promise.html | 5 ++--- src/test/mochitest/test_reps_regexp.html | 4 ++-- src/test/mochitest/test_reps_string.html | 4 ++-- src/test/mochitest/test_reps_stylesheet.html | 4 ++-- src/test/mochitest/test_reps_symbol.html | 4 ++-- src/test/mochitest/test_reps_text-node.html | 5 ++--- src/test/mochitest/test_reps_undefined.html | 4 ++-- src/test/mochitest/test_reps_window.html | 5 +++-- 30 files changed, 61 insertions(+), 70 deletions(-) diff --git a/src/reps/rep.js b/src/reps/rep.js index c7566ad..ab84da9 100644 --- a/src/reps/rep.js +++ b/src/reps/rep.js @@ -152,6 +152,7 @@ module.exports = { NaNRep, Null, Number, + Obj, ObjectWithText, ObjectWithURL, PromiseRep, diff --git a/src/test/mochitest/test_reps_array.html b/src/test/mochitest/test_reps_array.html index 07a3e4e..24fb11e 100644 --- a/src/test/mochitest/test_reps_array.html +++ b/src/test/mochitest/test_reps_array.html @@ -20,9 +20,8 @@ /* import-globals-from head.js */ window.onload = Task.async(function* () { - let { Rep } = browserRequire("devtools/client/shared/components/reps/rep"); - let { ArrayRep } = browserRequire("devtools/client/shared/components/reps/array"); - const { MODE } = browserRequire("devtools/client/shared/components/reps/constants"); + const { REPS, MODE } = browserRequire("devtools/client/shared/components/reps/load-reps"); + let { Rep, ArrayRep } = REPS; let componentUnderTest = ArrayRep; const maxLength = { diff --git a/src/test/mochitest/test_reps_attribute.html b/src/test/mochitest/test_reps_attribute.html index aa8a5df..a19a868 100644 --- a/src/test/mochitest/test_reps_attribute.html +++ b/src/test/mochitest/test_reps_attribute.html @@ -18,8 +18,8 @@