FubuMvcArchive / storyteller

OBSOLETE, see Storyteller2 -- DSL tool for .Net automated testing
Other
66 stars 13 forks source link

Stack overflow while editing test #46

Closed dnak closed 10 years ago

dnak commented 13 years ago

If you use a fixture that embeds another fixture, which in turn embeds a 3rd and then a 4th fixture, a "stack overflow" error message will display when adding grammars to the test. You can click through the error and the test displays and saves just fine. Three embeds are required - the error does not occur if you embed 2 levels deep.

Here is an example set of fixtures:

public class StackOverflowFixture : Fixture { public StackOverflowFixture() { this["A"] = Embed("fix a"); }

    [FormatAs("enter {input} for stack")]
    public void TestStack(string input)
    {
    }
}

public class FixA : Fixture
{
    public FixA()
    {
        this["B"] = Embed<FixB>("fix b");
    }

    [FormatAs("enter {input} for a")]
    public void TestA(string input)
    {
    }
}

public class FixB : Fixture
{
    public FixB()
    {
        this["C"] = Embed<FixC>("fix c");
    }

    [FormatAs("enter {input} for b")]
    public void TestB(string input)
    {
    }
}

public class FixC : Fixture
{
    [FormatAs("enter {input} for c")]
    public void TestC(string input)
    {
    }
}

And an example test:

dnak commented 13 years ago

I think this is actually an IE 8 issue. After upgrading to IE 9, I can no longer recreate the issue.