function setWindowSizeOverride(width, height) {
    if (window.internals)
        window.internals.settings.setTextAutosizingWindowSizeOverride(width, height);
}

function setFontScaleFactor(scale) {
    if (window.internals)
        window.internals.settings.setAccessibilityFontScaleFactor(scale);
}

function initAutosizingTest() {
    if (window.internals) {
        window.internals.settings.setTextAutosizingEnabled(true);
        setWindowSizeOverride(320, 480);
    } else if (window.console && console.warn) {
        console.warn("This test depends on Text Autosizing being enabled. Run with content shell"
                + "and --run-layout-test or manually enable Text Autosizing and either use a "
                + "mobile device with 320px device-width (like Nexus S or iPhone), or define "
                + "DEBUG_TEXT_AUTOSIZING_ON_DESKTOP.");
    }
}

// Automatically call init. Users who want a different window size can use setWindowSizeOverride.
initAutosizingTest();
function setWindowSizeOverride(width, height) {
    if (window.internals)
        window.internals.settings.setTextAutosizingWindowSizeOverride(width, height);
}

function setFontScaleFactor(scale) {
    if (window.internals)
        window.internals.settings.setAccessibilityFontScaleFactor(scale);
}

function initAutosizingTest() {
    if (window.internals) {
        window.internals.settings.setTextAutosizingEnabled(true);
        setWindowSizeOverride(320, 480);
    } else if (window.console && console.warn) {
        console.warn("This test depends on Text Autosizing being enabled. Run with content shell "
                + "and --run-layout-test or manually enable Text Autosizing and either use a "
                + "mobile device with 320px device-width (like Nexus S or iPhone), or define "
                + "DEBUG_TEXT_AUTOSIZING_ON_DESKTOP.");
    }
}

// Automatically call init. Users who want a different window size can use setWindowSizeOverride.
initAutosizingTest();

Fix missing space in autosizing info message.
Fix missing space in autosizing info message.

BUG=

Review URL: https://codereview.chromium.org/1045933003

git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@192791 bbb929c8-8fbe-4397-9dbb-9b2b20218538
