+2011-11-17 Kaustubh Atrawalkar <kaustubh@motorola.com>
+
+ Remove initProgressEvent method
+ https://bugs.webkit.org/show_bug.cgi?id=71340
+
+ Reviewed by Adam Barth.
+
+ This method has been removed from the spec draft.
+ http://www.w3.org/TR/progress-events/#interface-progressevent
+
+ No new tests. Removed method. Updated expected results.
+
+ * fast/dom/non-numeric-values-numeric-parameters-expected.txt:
+ * fast/dom/script-tests/non-numeric-values-numeric-parameters.js:
+ * fast/events/init-events-expected.txt:
+ * fast/events/script-tests/init-events.js:
+ * fast/xmlhttprequest/xmlhttprequest-get-expected.txt:
+ * platform/chromium-cg-mac/fast/xmlhttprequest/xmlhttprequest-get-expected.txt:
+ * platform/chromium-mac/fast/xmlhttprequest/xmlhttprequest-get-expected.txt:
+ * platform/chromium-win/fast/xmlhttprequest/xmlhttprequest-get-expected.txt:
+
2011-11-17 Adam Klein <adamk@chromium.org>
Move JS recursion counter from V8Proxy to V8BindingPerIsolateData
PASS nonNumericPolicy('document.body.attributes.item(x)') is 'any type allowed'
PASS nonNumericPolicy('document.createNodeIterator(document, x, null, false)') is 'any type allowed'
PASS nonNumericPolicy('document.getElementsByTagName("div").item(x)') is 'any type allowed'
-PASS nonNumericPolicy('document.createEvent("ProgressEvent").initProgressEvent("a", false, false, false, x, 0)') is 'any type allowed'
-PASS nonNumericPolicy('document.createEvent("ProgressEvent").initProgressEvent("a", false, false, false, 0, x)') is 'any type allowed'
PASS nonNumericPolicy('document.createRange().setStart(document, x)') is 'any type allowed'
PASS nonNumericPolicy('document.createRange().setEnd(document, x)') is 'any type allowed'
PASS nonNumericPolicy('document.createRange().comparePoint(document, x)') is 'any type allowed'
shouldBe("nonNumericPolicy('document.getElementsByTagName(\"div\").item(x)')", "'any type allowed'");
-// ProgressEvent
-
-shouldBe("nonNumericPolicy('document.createEvent(\"ProgressEvent\").initProgressEvent(\"a\", false, false, false, x, 0)')", "'any type allowed'");
-shouldBe("nonNumericPolicy('document.createEvent(\"ProgressEvent\").initProgressEvent(\"a\", false, false, false, 0, x)')", "'any type allowed'");
-
// Range
shouldBe("nonNumericPolicy('document.createRange().setStart(document, x)')", "'any type allowed'");
PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", "d", 1001').attrName is 'd'
PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", null, 1001').attrName is 'null'
PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", "d", 1001').attrChange is 1001
-PASS testInitEvent('Progress', '"a", false, false, false, 1001, 1002').type is 'a'
-PASS testInitEvent('Progress', 'null, false, false, false, 1001, 1002').type is 'null'
-PASS testInitEvent('Progress', '"a", false, false, false, 1001, 1002').bubbles is false
-PASS testInitEvent('Progress', '"a", true, false, false, 1001, 1002').bubbles is true
-PASS testInitEvent('Progress', '"a", false, false, false, 1001, 1002').cancelable is false
-PASS testInitEvent('Progress', '"a", false, true, false, 1001, 1002').cancelable is true
-PASS testInitEvent('Progress', '"a", false, false, false, 1001, 1002').lengthComputable is false
-PASS testInitEvent('Progress', '"a", false, false, true, 1001, 1002').lengthComputable is true
-PASS testInitEvent('Progress', '"a", false, false, false, 1001, 1002').loaded is 1001
-PASS testInitEvent('Progress', '"a", false, false, false, 1001, 1002').total is 1002
PASS testInitEvent('Storage', '"a", false, false, "b", "c", "d", "e"').type is 'a'
PASS testInitEvent('Storage', 'null, false, false, "b", "c", "d", "e"').type is 'null'
PASS testInitEvent('Storage', '"a", false, false, "b", "c", "d", "e"').bubbles is false
shouldBe("testInitEvent('Mutation', '\"a\", false, false, null, \"b\", \"c\", null, 1001').attrName", "'null'");
shouldBe("testInitEvent('Mutation', '\"a\", false, false, null, \"b\", \"c\", \"d\", 1001').attrChange", "1001");
-shouldBe("testInitEvent('Progress', '\"a\", false, false, false, 1001, 1002').type", "'a'");
-shouldBe("testInitEvent('Progress', 'null, false, false, false, 1001, 1002').type", "'null'");
-shouldBe("testInitEvent('Progress', '\"a\", false, false, false, 1001, 1002').bubbles", "false");
-shouldBe("testInitEvent('Progress', '\"a\", true, false, false, 1001, 1002').bubbles", "true");
-shouldBe("testInitEvent('Progress', '\"a\", false, false, false, 1001, 1002').cancelable", "false");
-shouldBe("testInitEvent('Progress', '\"a\", false, true, false, 1001, 1002').cancelable", "true");
-shouldBe("testInitEvent('Progress', '\"a\", false, false, false, 1001, 1002').lengthComputable", "false");
-shouldBe("testInitEvent('Progress', '\"a\", false, false, true, 1001, 1002').lengthComputable", "true");
-shouldBe("testInitEvent('Progress', '\"a\", false, false, false, 1001, 1002').loaded", "1001");
-shouldBe("testInitEvent('Progress', '\"a\", false, false, false, 1001, 1002').total", "1002");
-
shouldBe("testInitEvent('Storage', '\"a\", false, false, \"b\", \"c\", \"d\", \"e\"').type", "'a'");
shouldBe("testInitEvent('Storage', 'null, false, false, \"b\", \"c\", \"d\", \"e\"').type", "'null'");
shouldBe("testInitEvent('Storage', '\"a\", false, false, \"b\", \"c\", \"d\", \"e\"').bubbles", "false");
initEvent : 'function initEvent() {
[native code]
}'
-initProgressEvent : 'function initProgressEvent() {
- [native code]
-}'
lengthComputable : 'false'
loaded : '0'
position : '0'
defaultPrevented : 'false'
eventPhase : '2'
initEvent : 'function initEvent() { [native code] }'
-initProgressEvent : 'function initProgressEvent() { [native code] }'
lengthComputable : 'false'
loaded : '0'
position : '0'
defaultPrevented : 'false'
eventPhase : '2'
initEvent : 'function initEvent() { [native code] }'
-initProgressEvent : 'function initProgressEvent() { [native code] }'
lengthComputable : 'false'
loaded : '0'
position : '0'
defaultPrevented : 'false'
eventPhase : '2'
initEvent : 'function initEvent() { [native code] }'
-initProgressEvent : 'function initProgressEvent() { [native code] }'
lengthComputable : 'false'
loaded : '0'
position : '0'
+2011-11-17 Kaustubh Atrawalkar <kaustubh@motorola.com>
+
+ Remove initProgressEvent method
+ https://bugs.webkit.org/show_bug.cgi?id=71340
+
+ Reviewed by Adam Barth.
+
+ This method has been removed from the spec draft.
+ http://www.w3.org/TR/progress-events/#interface-progressevent
+
+ No new tests. Removed method.
+
+ * dom/ProgressEvent.cpp:
+ * dom/ProgressEvent.h:
+ * dom/ProgressEvent.idl:
+
2011-11-17 Eunmi Lee <eunmi15.lee@samsung.com>
[EFL] Move keyIdentifierForEvasKeyName() and windowsKeyCodeForEvasKeyName() to the
{
}
-void ProgressEvent::initProgressEvent(const AtomicString& typeArg, bool canBubbleArg, bool cancelableArg,
- bool lengthComputableArg, unsigned long long loadedArg, unsigned long long totalArg)
-{
- if (dispatched())
- return;
-
- initEvent(typeArg, canBubbleArg, cancelableArg);
-
- m_lengthComputable = lengthComputableArg;
- m_loaded = loadedArg;
- m_total = totalArg;
-}
-
const AtomicString& ProgressEvent::interfaceName() const
{
return eventNames().interfaceForProgressEvent;
return adoptRef(new ProgressEvent(type, initializer));
}
- void initProgressEvent(const AtomicString& typeArg, bool canBubbleArg, bool cancelableArg,
- bool lengthComputableArg, unsigned long long loadedArg, unsigned long long totalArg);
-
bool lengthComputable() const { return m_lengthComputable; }
unsigned long long loaded() const { return m_loaded; }
unsigned long long total() const { return m_total; }
readonly attribute [InitializedByConstructor] boolean lengthComputable;
readonly attribute [InitializedByConstructor] unsigned long long loaded;
readonly attribute [InitializedByConstructor] unsigned long long total;
-
- void initProgressEvent(in [Optional=CallWithDefaultValue] DOMString typeArg,
- in [Optional=CallWithDefaultValue] boolean canBubbleArg,
- in [Optional=CallWithDefaultValue] boolean cancelableArg,
- in [Optional=CallWithDefaultValue] boolean lengthComputableArg,
- in [Optional=CallWithDefaultValue] unsigned long long loadedArg,
- in [Optional=CallWithDefaultValue] unsigned long long totalArg);
};
}