Letractively / aost

Automatically exported from code.google.com/p/aost
Other
1 stars 0 forks source link

$relaxed is null in Engine, fix in 0.8.0 #441

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

Container(uid: "Table", clocator: [tag: "table"]){
    Container(uid: "Part", clocator: [tag: "td"]){
        InputBox(uid: "q", clocator: [tag: "input", title: "Google Search", class: "lst", name: "q"], respond: ["blur"])
        SubmitButton(uid: "GoogleSearch", clocator: [tag: "input", type: "submit", class: "lsb", value: "Google Search", name: "btnG"], respond: ["click"])
        SubmitButton(uid: "I'mFeeling", clocator: [tag: "input", type: "submit", class: "lsb", value: "I'm Feeling Lucky", name: "btnI"], respond: ["click"])
    }
    Container(uid: "sbl", clocator: [tag: "td", id: "sbl", class: "sblc"]){
        UrlLink(uid: "LanguageTools", clocator: [tag: "a", text: "Language Tools", direct: "true", href: "/language_tools?hl=en"])
        UrlLink(uid: "AdvancedSearch", clocator: [tag: "a", text: "Advanced Search", direct: "true", href: "/advanced_search?hl=en"])
        TextBox(uid: "sbl", clocator: [tag: "td", id: "sbl", class: "sblc"])
    }
}

Error while validating UI Module Table: TypeError -> $relaxed is null

JavaScript Error Stack: 
{anonymous}([object 
Object])@chrome://trump/content/engine/tellurium-uialg.js:406

{anonymous}([object Object])@chrome://trump/content/engine/tellurium-uiobj.js:77

{anonymous}([object Object],[object 
XPCNativeWrapper])@chrome://trump/content/engine/tellurium-uialg.js:1015

{anonymous}()@chrome://trump/content/uicreator/tree.js:313

{anonymous}()@chrome://trump/content/editor.js:216

{anonymous}()@chrome://trump/content/editor.js:189

{anonymous}()@chrome://trump/content/editor.js:173

oncommand([object XULCommandEvent])@chrome://trump/content/trump-ide.xul:1

Original issue reported on code.google.com by John.Jian.Fang@gmail.com on 6 Jul 2010 at 6:19

GoogleCodeExporter commented 8 years ago
           if($relaxed == null){
                !tellurium.logManager.isUseLog || fbWarn("Cannot find a relaxed match for UI object ", uid);

                var rdz = new RelaxDetail();
                rdz.uid = uid;
                rdz.locator = clocator;
                snapshot.relaxed = true;
                snapshot.relaxDetails.push(rdz);

                snapshot.setColor(ncolor);
                snapshot.score += 0;
                snapshot.nelem++;
                this.squeue.push(snapshot);
            }else{

Original comment by John.Jian.Fang@gmail.com on 6 Jul 2010 at 7:21