<commit_before>///<reference path="../testReference.ts" />
/* tslint:disable: no-var-keyword */

describe("RenderController", () => {
  // HACKHACK: #2083
  it.skip("Components whose render() is triggered by another Component's render() will be drawn", () => {
    var link1 = new Plottable.Component();
    var svg1 = TestMethods.generateSVG();
    link1.anchor(svg1).computeLayout();
    var link2 = new Plottable.Component();
    var svg2 = TestMethods.generateSVG();
    link2.anchor(svg2).computeLayout();

    (<any> link1).renderImmediately = () => link2.render();
    var link2Rendered = false;
    (<any> link2).renderImmediately = () => link2Rendered = true;

    link1.render();
    assert.isTrue(link2Rendered, "dependent Component was render()-ed");

    svg1.remove();
    svg2.remove();
  });
});<commit_msg>renderControllerTests ban var<commit_after>///<reference path="../testReference.ts" />
/* tslint:disable: no-var-keyword */

describe("RenderController", () => {
  // HACKHACK: #2083
  it.skip("Components whose render() is triggered by another Component's render() will be drawn", () => {
    const link1 = new Plottable.Component();
    const svg1 = TestMethods.generateSVG();
    link1.anchor(svg1).computeLayout();
    const link2 = new Plottable.Component();
    const svg2 = TestMethods.generateSVG();
    link2.anchor(svg2).computeLayout();

    (<any> link1).renderImmediately = () => link2.render();
    let link2Rendered = false;
    (<any> link2).renderImmediately = () => link2Rendered = true;

    link1.render();
    assert.isTrue(link2Rendered, "dependent Component was render()-ed");

    svg1.remove();
    svg2.remove();
  });
});
{'fraction_non_alphanumeric': 0.17005988023952096, 'fraction_numerical': 0.025149700598802394, 'mean_word_length': 3.900293255131965, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6325851', 'n_tokens_mistral': 543, 'n_tokens_neox': 516, 'n_words': 108}