Commit Graph

9 Commits

Author SHA1 Message Date
Alex Maitland 6fa25ab9db Test - Improve reliability of JavaScriptObjectRepositoryFacts.CanRegisterJavascriptObjectBindWhenNamespaceIsNull
- JavascriptObjectRepository generates object ids using a static counter, we need to get the object Id for this
  test to be reliable, using an Object Id of 1 will fail if the test order isn't in a very specific order
2021-04-05 13:38:02 +10:00
Alex Maitland 1599bfa9cd Javascript Binding - Fix failing .Net Core Test case
- Add condition to calling Register()
- Add license disclaimer

Follow up to #3467
2021-04-05 10:54:22 +10:00
pedoc 1ff25441ea Javascript Binding - Allow binding to classes in the global namespace (#3467)
* fix IsComplexType NullReferenceException

Sometimes, the registered Javascript object does not have a namespace, at this time this function will throw a ```NullReferenceException```.

* add unit test for IsComplexType

* Simplify and remove useless code

* Update CefSharp/Internals/JavascriptObjectRepository.cs

Co-authored-by: campersau <buchholz.bastian@googlemail.com>

Co-authored-by: Alex Maitland <amaitland@users.noreply.github.com>
Co-authored-by: campersau <buchholz.bastian@googlemail.com>
2021-04-05 10:31:15 +10:00
Alex Maitland 6b27ba8d2b Test - Fix a couple of javascript warnings 2021-03-16 15:31:13 +10:00
campersau e873f8fe60 Test - Add CefSharp.RenderProcessId javascript binding test
Issue #2984
2020-11-09 20:53:35 +10:00
amaitland 05665405f4 Core - Legacy Javascript Binding Integration Test
Add integration test (only in Net Full, not Net Core currently)

#2977
2020-09-16 19:58:40 +10:00
amaitland 1af1065f03 Net Core - Add XUnit Test Project
Issue #3197
2020-07-24 21:07:29 +10:00
campersau 760cc13d96 Remove unused JavascriptBindingFacts tests (#3194) 2020-07-23 14:17:41 +10:00
amaitland ae41e10d71 Core - Javascript Binding Configure Property Name
- Rename settings object to JavascriptBindingSettings
- Validate JavascriptBindingSettings.JsBindingGlobalObjectName in setter to provide immediate
  feedback
- Add FreezableBase which throws exception when frozen (we can reuse this for some other settings classes)
- Add some basic Unit Tests (More would be better)

Follow on from #3126
2020-05-30 19:28:50 +10:00