Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginUserSettings.cpp

Issue 29331713: TEST ONLY -- Verify behavior of DISP_E_BADINDEX in the IE JavaScript runtime (Closed)
Patch Set: Created Dec. 1, 2015, 5:48 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « html/templates/test-bad-index.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginUserSettings.cpp
===================================================================
--- a/src/plugin/PluginUserSettings.cpp
+++ b/src/plugin/PluginUserSettings.cpp
@@ -42,6 +42,7 @@
dispatchID_IsAcceptableAdsEnabled,
dispatchID_SetAcceptableAdsEnabled,
dispatchID_IsUpdate,
+ dispatchID_TestBadIndex,
};
/**
@@ -67,6 +68,7 @@
m.emplace(L"IsAcceptableAdsEnabled", dispatchID_IsAcceptableAdsEnabled);
m.emplace(L"SetAcceptableAdsEnabled", dispatchID_SetAcceptableAdsEnabled);
m.emplace(L"IsUpdate", dispatchID_IsUpdate);
+ m.emplace(L"TestBadIndex", dispatchID_TestBadIndex);
}
catch(...)
{
@@ -440,6 +442,23 @@
}
}
break;
+ case dispatchID_TestBadIndex:
+ {
+ if (pDispparams->cArgs != 1)
+ {
+ return DISP_E_BADPARAMCOUNT;
+ }
+ if (pDispparams->rgvarg[0].vt != VT_I4)
+ {
+ return DISP_E_TYPEMISMATCH;
+ }
+ int index = pDispparams->rgvarg[0].lVal;
+ if (index >= 1)
+ {
+ return DISP_E_BADINDEX;
+ }
+ }
+ break;
default:
return DISP_E_MEMBERNOTFOUND;
break;
« no previous file with comments | « html/templates/test-bad-index.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld