Browse Source

add test case for HELP-16678

JonStargaryen 4 years ago
parent
commit
dedaed944f
1 changed files with 13 additions and 1 deletions
  1. 13 1
      src/viewer/index.html

+ 13 - 1
src/viewer/index.html

@@ -53,7 +53,7 @@
             var props = _props && JSON.parse(_props)
             var _loadPdbIds = getQueryParam('loadPdbIds')
             var loadPdbIds = _loadPdbIds && JSON.parse(_loadPdbIds)
-            
+
             // create an instance of the plugin
             var viewer = new rcsbMolstar.Viewer('viewer', {
                 showImportControls: !pdbId,
@@ -85,6 +85,10 @@
             Superposed
             <button style="padding: 3px;" onclick="superposed()">3PQR | 1U19</button>
 
+            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+
+            Ligand Focus on wrong assembly
+            <button style="padding: 3px" onclick="ligandAssembly()">5RLA</button>
         </div>
         <script>
 
@@ -311,6 +315,14 @@
                         viewer.resetCamera(0)
                     });
             }
+
+            function ligandAssembly() {
+                viewer.clear()
+                    .then(function() {
+                        // UR7 is not present in assembly 1
+                        return viewer.loadPdbId('5RL9', { kind: 'feature', assemblyId: '1', target: { label_comp_id: 'UR7' } });
+                    });
+            }
         </script>
     </body>
 </html>