Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Unified Diff: Source/bindings/tests/results/V8TestObject.cpp

Issue 212593008: Bindings: rename |resultValue| => |jsValue| (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/templates/attributes.cpp ('k') | Source/bindings/tests/results/V8TestObjectPython.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/tests/results/V8TestObject.cpp
diff --git a/Source/bindings/tests/results/V8TestObject.cpp b/Source/bindings/tests/results/V8TestObject.cpp
index 7fc50bb5eb6b34fae7a968382a0b380fc8d3f8a8..f605df2a09ce4e667ba0e4d038f92954977ab262 100644
--- a/Source/bindings/tests/results/V8TestObject.cpp
+++ b/Source/bindings/tests/results/V8TestObject.cpp
@@ -1080,15 +1080,15 @@ static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomURLAtt
static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
{
TestObject* impl = V8TestObject::toNative(info.Holder());
- String resultValue = impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattributeAttr);
- if (resultValue.isEmpty()) {
+ String jsValue = impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattributeAttr);
+ if (jsValue.isEmpty()) {
;
- } else if (equalIgnoringCase(resultValue, "unique")) {
- resultValue = "unique";
+ } else if (equalIgnoringCase(jsValue, "unique")) {
+ jsValue = "unique";
} else {
- resultValue = "";
+ jsValue = "";
}
- v8SetReturnValueString(info, resultValue, info.GetIsolate());
+ v8SetReturnValueString(info, jsValue, info.GetIsolate());
}
static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
@@ -1117,19 +1117,19 @@ static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin
static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
{
TestObject* impl = V8TestObject::toNative(info.Holder());
- String resultValue = impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAttr);
- if (resultValue.isEmpty()) {
+ String jsValue = impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAttr);
+ if (jsValue.isEmpty()) {
;
- } else if (equalIgnoringCase(resultValue, "Per")) {
- resultValue = "Per";
- } else if (equalIgnoringCase(resultValue, "Paal")) {
- resultValue = "Paal";
- } else if (equalIgnoringCase(resultValue, "Espen")) {
- resultValue = "Espen";
+ } else if (equalIgnoringCase(jsValue, "Per")) {
+ jsValue = "Per";
+ } else if (equalIgnoringCase(jsValue, "Paal")) {
+ jsValue = "Paal";
+ } else if (equalIgnoringCase(jsValue, "Espen")) {
+ jsValue = "Espen";
} else {
- resultValue = "";
+ jsValue = "";
}
- v8SetReturnValueString(info, resultValue, info.GetIsolate());
+ v8SetReturnValueString(info, jsValue, info.GetIsolate());
}
static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
@@ -1158,17 +1158,17 @@ static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>,
static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
{
TestObject* impl = V8TestObject::toNative(info.Holder());
- String resultValue = impl->fastGetAttribute(HTMLNames::OtherAttr);
- if (resultValue.isEmpty()) {
+ String jsValue = impl->fastGetAttribute(HTMLNames::OtherAttr);
+ if (jsValue.isEmpty()) {
;
- } else if (equalIgnoringCase(resultValue, "Value1")) {
- resultValue = "Value1";
- } else if (equalIgnoringCase(resultValue, "Value2")) {
- resultValue = "Value2";
+ } else if (equalIgnoringCase(jsValue, "Value1")) {
+ jsValue = "Value1";
+ } else if (equalIgnoringCase(jsValue, "Value2")) {
+ jsValue = "Value2";
} else {
- resultValue = "";
+ jsValue = "";
}
- v8SetReturnValueString(info, resultValue, info.GetIsolate());
+ v8SetReturnValueString(info, jsValue, info.GetIsolate());
}
static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
@@ -1197,17 +1197,17 @@ static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str
static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
{
TestObject* impl = V8TestObject::toNative(info.Holder());
- String resultValue = impl->fastGetAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr);
- if (resultValue.isEmpty()) {
- resultValue = "rsa";
- } else if (equalIgnoringCase(resultValue, "rsa")) {
- resultValue = "rsa";
- } else if (equalIgnoringCase(resultValue, "dsa")) {
- resultValue = "dsa";
+ String jsValue = impl->fastGetAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr);
+ if (jsValue.isEmpty()) {
+ jsValue = "rsa";
+ } else if (equalIgnoringCase(jsValue, "rsa")) {
+ jsValue = "rsa";
+ } else if (equalIgnoringCase(jsValue, "dsa")) {
+ jsValue = "dsa";
} else {
- resultValue = "";
+ jsValue = "";
}
- v8SetReturnValueString(info, resultValue, info.GetIsolate());
+ v8SetReturnValueString(info, jsValue, info.GetIsolate());
}
static void limitedWithMissingDefaultAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
@@ -1236,19 +1236,19 @@ static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local<
static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
{
TestObject* impl = V8TestObject::toNative(info.Holder());
- String resultValue = impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr);
- if (resultValue.isEmpty()) {
- resultValue = "auto";
- } else if (equalIgnoringCase(resultValue, "ltr")) {
- resultValue = "ltr";
- } else if (equalIgnoringCase(resultValue, "rtl")) {
- resultValue = "rtl";
- } else if (equalIgnoringCase(resultValue, "auto")) {
- resultValue = "auto";
+ String jsValue = impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr);
+ if (jsValue.isEmpty()) {
+ jsValue = "auto";
+ } else if (equalIgnoringCase(jsValue, "ltr")) {
+ jsValue = "ltr";
+ } else if (equalIgnoringCase(jsValue, "rtl")) {
+ jsValue = "rtl";
+ } else if (equalIgnoringCase(jsValue, "auto")) {
+ jsValue = "auto";
} else {
- resultValue = "ltr";
+ jsValue = "ltr";
}
- v8SetReturnValueString(info, resultValue, info.GetIsolate());
+ v8SetReturnValueString(info, jsValue, info.GetIsolate());
}
static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
@@ -1277,17 +1277,17 @@ static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8:
static void limitedWithInvalidAndMissingDefaultAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
{
TestObject* impl = V8TestObject::toNative(info.Holder());
- String resultValue = impl->fastGetAttribute(HTMLNames::limitedwithinvalidandmissingdefaultattributeAttr);
- if (resultValue.isEmpty()) {
- resultValue = "left";
- } else if (equalIgnoringCase(resultValue, "left")) {
- resultValue = "left";
- } else if (equalIgnoringCase(resultValue, "right")) {
- resultValue = "right";
+ String jsValue = impl->fastGetAttribute(HTMLNames::limitedwithinvalidandmissingdefaultattributeAttr);
+ if (jsValue.isEmpty()) {
+ jsValue = "left";
+ } else if (equalIgnoringCase(jsValue, "left")) {
+ jsValue = "left";
+ } else if (equalIgnoringCase(jsValue, "right")) {
+ jsValue = "right";
} else {
- resultValue = "left";
+ jsValue = "left";
}
- v8SetReturnValueString(info, resultValue, info.GetIsolate());
+ v8SetReturnValueString(info, jsValue, info.GetIsolate());
}
static void limitedWithInvalidAndMissingDefaultAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
@@ -1316,19 +1316,19 @@ static void limitedWithInvalidAndMissingDefaultAttributeAttributeSetterCallback(
static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
{
TestObject* impl = V8TestObject::toNative(info.Holder());
- String resultValue = impl->fastGetAttribute(HTMLNames::corssettingattributeAttr);
- if (resultValue.isNull()) {
+ String jsValue = impl->fastGetAttribute(HTMLNames::corssettingattributeAttr);
+ if (jsValue.isNull()) {
;
- } else if (resultValue.isEmpty()) {
- resultValue = "anonymous";
- } else if (equalIgnoringCase(resultValue, "anonymous")) {
- resultValue = "anonymous";
- } else if (equalIgnoringCase(resultValue, "use-credentials")) {
- resultValue = "use-credentials";
+ } else if (jsValue.isEmpty()) {
+ jsValue = "anonymous";
+ } else if (equalIgnoringCase(jsValue, "anonymous")) {
+ jsValue = "anonymous";
+ } else if (equalIgnoringCase(jsValue, "use-credentials")) {
+ jsValue = "use-credentials";
} else {
- resultValue = "anonymous";
+ jsValue = "anonymous";
}
- v8SetReturnValueString(info, resultValue, info.GetIsolate());
+ v8SetReturnValueString(info, jsValue, info.GetIsolate());
}
static void corsSettingAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
@@ -1341,23 +1341,23 @@ static void corsSettingAttributeAttributeGetterCallback(v8::Local<v8::String>, c
static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
{
TestObject* impl = V8TestObject::toNative(info.Holder());
- String resultValue = impl->fastGetAttribute(HTMLNames::limitedwithemptymissinginvalidattributeAttr);
- if (resultValue.isNull()) {
- resultValue = "missing";
- } else if (resultValue.isEmpty()) {
- resultValue = "empty";
- } else if (equalIgnoringCase(resultValue, "empty")) {
- resultValue = "empty";
- } else if (equalIgnoringCase(resultValue, "missing")) {
- resultValue = "missing";
- } else if (equalIgnoringCase(resultValue, "invalid")) {
- resultValue = "invalid";
- } else if (equalIgnoringCase(resultValue, "a-normal")) {
- resultValue = "a-normal";
+ String jsValue = impl->fastGetAttribute(HTMLNames::limitedwithemptymissinginvalidattributeAttr);
+ if (jsValue.isNull()) {
+ jsValue = "missing";
+ } else if (jsValue.isEmpty()) {
+ jsValue = "empty";
+ } else if (equalIgnoringCase(jsValue, "empty")) {
+ jsValue = "empty";
+ } else if (equalIgnoringCase(jsValue, "missing")) {
+ jsValue = "missing";
+ } else if (equalIgnoringCase(jsValue, "invalid")) {
+ jsValue = "invalid";
+ } else if (equalIgnoringCase(jsValue, "a-normal")) {
+ jsValue = "a-normal";
} else {
- resultValue = "invalid";
+ jsValue = "invalid";
}
- v8SetReturnValueString(info, resultValue, info.GetIsolate());
+ v8SetReturnValueString(info, jsValue, info.GetIsolate());
}
static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
« no previous file with comments | « Source/bindings/templates/attributes.cpp ('k') | Source/bindings/tests/results/V8TestObjectPython.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698